mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-16 11:26:59 +08: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.
38 lines
924 B
C
38 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 */
|