Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
2ca45d57
Commit
2ca45d57
authored
27 years ago
by
Vadim B. Mikheev
Browse files
Options
Downloads
Patches
Plain Diff
Function prototypes.
parent
38f0ffd3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/include/commands/trigger.h
+38
-0
38 additions, 0 deletions
src/include/commands/trigger.h
with
38 additions
and
0 deletions
src/include/commands/trigger.h
+
38
−
0
View file @
2ca45d57
...
@@ -9,7 +9,45 @@
...
@@ -9,7 +9,45 @@
#ifndef TRIGGER_H
#ifndef TRIGGER_H
#define TRIGGER_H
#define TRIGGER_H
#include
"access/tupdesc.h"
#include
"access/htup.h"
#include
"utils/rel.h"
typedef
uint32
TriggerAction
;
#define TRIGGER_ACTION_INSERT 0x00000000
#define TRIGGER_ACTION_DELETE 0x00000001
#define TRIGGER_ACTION_UPDATE 0x00000010
#define TRIGGER_ACTION_OPMASK 0x00000011
#define TRIGGER_ACTION_ROW 4
#define TRIGGER_FIRED_BY_INSERT (action) \
(((TriggerAction) action & TRIGGER_ACTION_OPMASK) == \
TRIGGER_ACTION_INSERT)
#define TRIGGER_FIRED_BY_DELETE (action) \
(((TriggerAction) action & TRIGGER_ACTION_OPMASK) == \
TRIGGER_ACTION_DELETE)
#define TRIGGER_FIRED_BY_UPDATE (action) \
(((TriggerAction) action & TRIGGER_ACTION_OPMASK) == \
TRIGGER_ACTION_UPDATE)
#define TRIGGER_FIRED_FOR_ROW (action) \
((TriggerAction) action & TRIGGER_ACTION_ROW)
#define TRIGGER_FIRED_FOR_STATEMENT (action) \
(!TRIGGER_FIRED_FOR_ROW (action))
extern
void
CreateTrigger
(
CreateTrigStmt
*
stmt
);
extern
void
CreateTrigger
(
CreateTrigStmt
*
stmt
);
extern
void
DropTrigger
(
DropTrigStmt
*
stmt
);
extern
void
DropTrigger
(
DropTrigStmt
*
stmt
);
extern
HeapTuple
ExecBRInsertTriggers
(
Relation
rel
,
HeapTuple
tuple
);
extern
void
ExecARInsertTriggers
(
Relation
rel
,
HeapTuple
tuple
);
extern
bool
ExecBRDeleteTriggers
(
Relation
rel
,
ItemPointer
tupleid
);
extern
void
ExecARDeleteTriggers
(
Relation
rel
,
ItemPointer
tupleid
);
extern
HeapTuple
ExecBRUpdateTriggers
(
Relation
rel
,
ItemPointer
tupleid
,
HeapTuple
tuple
);
extern
void
ExecARUpdateTriggers
(
Relation
rel
,
ItemPointer
tupleid
,
HeapTuple
tuple
);
#endif
/* TRIGGER_H */
#endif
/* TRIGGER_H */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment