diff options
| author | Kevin Grittner | 2016-11-04 15:49:50 +0000 |
|---|---|---|
| committer | Kevin Grittner | 2016-11-04 15:49:50 +0000 |
| commit | 8c48375e5f43ebd832f93c9166d1fe0e639ff806 (patch) | |
| tree | 5115baa716b278c4dcabcf6b22fd446a17eb36d8 /src/include/commands | |
| parent | 69d590fffbdcfb50a31a8c78ce87e602002a869f (diff) | |
Implement syntax for transition tables in AFTER triggers.
This is infrastructure for the complete SQL standard feature. No
support is included at this point for execution nodes or PLs. The
intent is to add that soon.
As this patch leaves things, standard syntax can create tuplestores
to contain old and/or new versions of rows affected by a statement.
References to these tuplestores are in the TriggerData structure.
C triggers can access the tuplestores directly, so they are usable,
but they cannot yet be referenced within a SQL statement.
Diffstat (limited to 'src/include/commands')
| -rw-r--r-- | src/include/commands/trigger.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/commands/trigger.h b/src/include/commands/trigger.h index 0ed7c86eb2..c6e3e2c234 100644 --- a/src/include/commands/trigger.h +++ b/src/include/commands/trigger.h @@ -37,6 +37,8 @@ typedef struct TriggerData Trigger *tg_trigger; Buffer tg_trigtuplebuf; Buffer tg_newtuplebuf; + Tuplestorestate *tg_oldtable; + Tuplestorestate *tg_newtable; } TriggerData; /* |
