2012-07-20 17:38:47 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* evtcache.c
|
|
|
|
* Special-purpose cache for event trigger data.
|
|
|
|
*
|
2013-01-01 23:15:01 +01:00
|
|
|
* Portions Copyright (c) 1996-2013, PostgreSQL Global Development Group
|
2012-07-20 17:38:47 +02:00
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
|
|
*
|
|
|
|
* IDENTIFICATION
|
|
|
|
* src/backend/utils/cache/evtcache.c
|
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef EVTCACHE_H
|
|
|
|
#define EVTCACHE_H
|
|
|
|
|
|
|
|
#include "nodes/pg_list.h"
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2013-01-22 00:00:24 +01:00
|
|
|
EVT_DDLCommandStart,
|
|
|
|
EVT_DDLCommandEnd
|
2012-07-20 17:38:47 +02:00
|
|
|
} EventTriggerEvent;
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
Oid fnoid; /* function to be called */
|
|
|
|
char enabled; /* as SESSION_REPLICATION_ROLE_* */
|
|
|
|
int ntags; /* number of command tags */
|
|
|
|
char **tag; /* command tags in SORTED order */
|
|
|
|
} EventTriggerCacheItem;
|
|
|
|
|
|
|
|
extern List *EventCacheLookup(EventTriggerEvent event);
|
|
|
|
|
|
|
|
#endif /* EVTCACHE_H */
|