PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
evtcache.h File Reference
#include "nodes/pg_list.h"
Include dependency graph for evtcache.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  EventTriggerCacheItem
 

Enumerations

enum  EventTriggerEvent { EVT_DDLCommandStart, EVT_DDLCommandEnd, EVT_SQLDrop, EVT_TableRewrite }
 

Functions

ListEventCacheLookup (EventTriggerEvent event)
 

Enumeration Type Documentation

Enumerator
EVT_DDLCommandStart 
EVT_DDLCommandEnd 
EVT_SQLDrop 
EVT_TableRewrite 

Definition at line 19 of file evtcache.h.

Function Documentation

List* EventCacheLookup ( EventTriggerEvent  event)

Definition at line 64 of file evtcache.c.

References BuildEventTriggerCache(), ETCS_VALID, EventTriggerCacheState, HASH_FIND, hash_search(), NULL, and EventTriggerCacheEntry::triggerlist.

Referenced by EventTriggerCommonSetup(), and trackDroppedObjectsNeeded().

65 {
67 
70  entry = hash_search(EventTriggerCache, &event, HASH_FIND, NULL);
71  return entry != NULL ? entry->triggerlist : NULL;
72 }
static HTAB * EventTriggerCache
Definition: evtcache.c:47
void * hash_search(HTAB *hashp, const void *keyPtr, HASHACTION action, bool *foundPtr)
Definition: dynahash.c:885
static void BuildEventTriggerCache(void)
Definition: evtcache.c:78
static EventTriggerCacheStateType EventTriggerCacheState
Definition: evtcache.c:49
#define NULL
Definition: c.h:229