Add data for WAL in pg_stat_io and backend statistics
[pgsql.git] / src / include / rewrite / prs2lock.h
blob17f468b3512459f5d5f0d2e286cd41c931263eda
1 /*-------------------------------------------------------------------------
3 * prs2lock.h
4 * data structures for POSTGRES Rule System II (rewrite rules only)
6 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
7 * Portions Copyright (c) 1994, Regents of the University of California
9 * src/include/rewrite/prs2lock.h
11 *-------------------------------------------------------------------------
13 #ifndef PRS2LOCK_H
14 #define PRS2LOCK_H
16 #include "access/attnum.h"
17 #include "nodes/pg_list.h"
20 * RewriteRule -
21 * holds an info for a rewrite rule
24 typedef struct RewriteRule
26 Oid ruleId;
27 CmdType event;
28 Node *qual;
29 List *actions;
30 char enabled;
31 bool isInstead;
32 } RewriteRule;
35 * RuleLock -
36 * all rules that apply to a particular relation. Even though we only
37 * have the rewrite rule system left and these are not really "locks",
38 * the name is kept for historical reasons.
40 typedef struct RuleLock
42 int numLocks;
43 RewriteRule **rules;
44 } RuleLock;
46 #endif /* PRS2LOCK_H */