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 ,
  EVT_Login
}
 

Functions

ListEventCacheLookup (EventTriggerEvent event)
 

Enumeration Type Documentation

◆ EventTriggerEvent

Enumerator
EVT_DDLCommandStart 
EVT_DDLCommandEnd 
EVT_SQLDrop 
EVT_TableRewrite 
EVT_Login 

Definition at line 20 of file evtcache.h.

21 {
26  EVT_Login,
EventTriggerEvent
Definition: evtcache.h:21
@ EVT_SQLDrop
Definition: evtcache.h:24
@ EVT_Login
Definition: evtcache.h:26
@ 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 63 of file evtcache.c.

64 {
66 
69  entry = hash_search(EventTriggerCache, &event, HASH_FIND, NULL);
70  return entry != NULL ? entry->triggerlist : NIL;
71 }
void * hash_search(HTAB *hashp, const void *keyPtr, HASHACTION action, bool *foundPtr)
Definition: dynahash.c:955
static void BuildEventTriggerCache(void)
Definition: evtcache.c:77
@ ETCS_VALID
Definition: evtcache.c:37
static HTAB * EventTriggerCache
Definition: evtcache.c:46
static EventTriggerCacheStateType EventTriggerCacheState
Definition: evtcache.c:48
@ HASH_FIND
Definition: hsearch.h:113
#define NIL
Definition: pg_list.h:68

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

Referenced by EventTriggerCommonSetup(), and trackDroppedObjectsNeeded().