Fix xslt_process() to ensure that it inserts a NULL terminator after the
[PostgreSQL.git] / src / include / rewrite / prs2lock.h
blob0ef15262e4dbd6a3fb3b5b94508c529b88ee6103
1 /*-------------------------------------------------------------------------
3 * prs2lock.h
4 * data structures for POSTGRES Rule System II (rewrite rules only)
6 * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
7 * Portions Copyright (c) 1994, Regents of the University of California
9 * $PostgreSQL$
11 *-------------------------------------------------------------------------
13 #ifndef PRS2LOCK_H
14 #define PRS2LOCK_H
16 #include "access/attnum.h"
17 #include "nodes/pg_list.h"
20 * RewriteRule -
21 * holds a info for a rewrite rule
24 typedef struct RewriteRule
26 Oid ruleId;
27 CmdType event;
28 AttrNumber attrno;
29 Node *qual;
30 List *actions;
31 char enabled;
32 bool isInstead;
33 } RewriteRule;
36 * RuleLock -
37 * all rules that apply to a particular relation. Even though we only
38 * have the rewrite rule system left and these are not really "locks",
39 * the name is kept for historical reasons.
41 typedef struct RuleLock
43 int numLocks;
44 RewriteRule **rules;
45 } RuleLock;
47 #endif /* REWRITE_H */