]> granicus.if.org Git - postgresql/blobdiff - src/include/utils/reltrigger.h
Fix initialization of fake LSN for unlogged relations
[postgresql] / src / include / utils / reltrigger.h
index b38d41b9bfdd2a3087436da782c8b4f142a25374..f1f8c37caab38d8cb022da600b125d9af2a39182 100644 (file)
@@ -4,7 +4,7 @@
  *       POSTGRES relation trigger definitions.
  *
  *
- * Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group
+ * Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
  * src/include/utils/reltrigger.h
@@ -39,6 +39,8 @@ typedef struct Trigger
        int16      *tgattr;
        char      **tgargs;
        char       *tgqual;
+       char       *tgoldtable;
+       char       *tgnewtable;
 } Trigger;
 
 typedef struct TriggerDesc
@@ -68,7 +70,11 @@ typedef struct TriggerDesc
        /* there are no row-level truncate triggers */
        bool            trig_truncate_before_statement;
        bool            trig_truncate_after_statement;
+       /* Is there at least one trigger specifying each transition relation? */
+       bool            trig_insert_new_table;
+       bool            trig_update_old_table;
+       bool            trig_update_new_table;
+       bool            trig_delete_old_table;
 } TriggerDesc;
 
-
-#endif   /* RELTRIGGER_H */
+#endif                                                 /* RELTRIGGER_H */