PostgreSQL Source Code  git master
evtcache.h File Reference
#include "nodes/bitmapset.h"
#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

◆ EventTriggerEvent

Enumerator
EVT_DDLCommandStart 
EVT_DDLCommandEnd 
EVT_SQLDrop 
EVT_TableRewrite 

Definition at line 20 of file evtcache.h.

21 {
EventTriggerEvent
Definition: evtcache.h:21
@ EVT_SQLDrop
Definition: evtcache.h:24
@ EVT_DDLCommandEnd
Definition: evtcache.h:23
@ EVT_DDLCommandStart
Definition: evtcache.h:22
@ EVT_TableRewrite
Definition: evtcache.h:25

Function Documentation

◆ EventCacheLookup()

List* EventCacheLookup ( EventTriggerEvent  event)

Definition at line 64 of file evtcache.c.

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

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

Referenced by EventTriggerCommonSetup(), and trackDroppedObjectsNeeded().