mirror of
https://github.com/postgres/postgres.git
synced 2026-04-26 16:48:14 -04:00
headerscheck and cpluspluscheck should skip the recently-added
cmdtaglist.h header, since (like kwlist.h and some other similarly-
designed headers) it's not meant to be included standalone.
evtcache.h was missing an #include to support its usage of Bitmapset.
typecmds.h was missing an #include to support its usage of ParseState.
The first two of these were evidently oversights in commit 2f9661311.
I didn't track down exactly which change broke typecmds.h, but it
must have been some rearrangement in one of its existing inclusions,
because it's referenced ParseState for quite a long time and there
were not complaints from these checking programs before.
37 lines
924 B
C
37 lines
924 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* evtcache.h
|
|
* Special-purpose cache for event trigger data.
|
|
*
|
|
* Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* IDENTIFICATION
|
|
* src/include/utils/evtcache.h
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef EVTCACHE_H
|
|
#define EVTCACHE_H
|
|
|
|
#include "nodes/bitmapset.h"
|
|
#include "nodes/pg_list.h"
|
|
|
|
typedef enum
|
|
{
|
|
EVT_DDLCommandStart,
|
|
EVT_DDLCommandEnd,
|
|
EVT_SQLDrop,
|
|
EVT_TableRewrite
|
|
} EventTriggerEvent;
|
|
|
|
typedef struct
|
|
{
|
|
Oid fnoid; /* function to be called */
|
|
char enabled; /* as SESSION_REPLICATION_ROLE_* */
|
|
Bitmapset *tagset; /* command tags, or NULL if empty */
|
|
} EventTriggerCacheItem;
|
|
|
|
extern List *EventCacheLookup(EventTriggerEvent event);
|
|
|
|
#endif /* EVTCACHE_H */
|