]> granicus.if.org Git - postgresql/blob - src/include/utils/evtcache.h
Add ddl_command_end support for event triggers.
[postgresql] / src / include / utils / evtcache.h
1 /*-------------------------------------------------------------------------
2  *
3  * evtcache.c
4  *        Special-purpose cache for event trigger data.
5  *
6  * Portions Copyright (c) 1996-2013, PostgreSQL Global Development Group
7  * Portions Copyright (c) 1994, Regents of the University of California
8  *
9  * IDENTIFICATION
10  *        src/backend/utils/cache/evtcache.c
11  *
12  *-------------------------------------------------------------------------
13  */
14 #ifndef EVTCACHE_H
15 #define EVTCACHE_H
16
17 #include "nodes/pg_list.h"
18
19 typedef enum
20 {
21         EVT_DDLCommandStart,
22         EVT_DDLCommandEnd
23 } EventTriggerEvent;
24
25 typedef struct
26 {
27         Oid                     fnoid;                          /* function to be called */
28         char            enabled;                        /* as SESSION_REPLICATION_ROLE_* */
29         int                     ntags;                          /* number of command tags */
30         char      **tag;                                /* command tags in SORTED order */
31 } EventTriggerCacheItem;
32
33 extern List *EventCacheLookup(EventTriggerEvent event);
34
35 #endif   /* EVTCACHE_H */