codekingpro/portable-devtools
115k
1/*-------------------------------------------------------------------------2 *3 * evtcache.h4 * Special-purpose cache for event trigger data.5 *6 * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group7 * Portions Copyright (c) 1994, Regents of the University of California8 *9 * IDENTIFICATION10 * src/include/utils/evtcache.h11 *12 *-------------------------------------------------------------------------13 */14#ifndef EVTCACHE_H15#define EVTCACHE_H16 17#include "nodes/bitmapset.h"18#include "nodes/pg_list.h"19 20typedef enum21{22 EVT_DDLCommandStart,23 EVT_DDLCommandEnd,24 EVT_SQLDrop,25 EVT_TableRewrite26} EventTriggerEvent;27 28typedef struct29{30 Oid fnoid; /* function to be called */31 char enabled; /* as SESSION_REPLICATION_ROLE_* */32 Bitmapset *tagset; /* command tags, or NULL if empty */33} EventTriggerCacheItem;34 35extern List *EventCacheLookup(EventTriggerEvent event);36 37#endif /* EVTCACHE_H */38 