Fix xslt_process() to ensure that it inserts a NULL terminator after the
[PostgreSQL.git] / src / include / catalog / pg_rewrite.h
blob4ad9da461f184d6322d8b72ac54aa696fe9ace72
1 /*-------------------------------------------------------------------------
3 * pg_rewrite.h
4 * definition of the system "rewrite-rule" relation (pg_rewrite)
5 * along with the relation's initial contents.
7 * As of Postgres 7.3, the primary key for this table is <ev_class, rulename>
8 * --- ie, rule names are only unique among the rules of a given table.
11 * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
12 * Portions Copyright (c) 1994, Regents of the University of California
14 * $PostgreSQL$
16 * NOTES
17 * the genbki.sh script reads this file and generates .bki
18 * information from the DATA() statements.
20 *-------------------------------------------------------------------------
22 #ifndef PG_REWRITE_H
23 #define PG_REWRITE_H
25 #include "catalog/genbki.h"
27 /* ----------------
28 * pg_rewrite definition. cpp turns this into
29 * typedef struct FormData_pg_rewrite
30 * ----------------
32 #define RewriteRelationId 2618
34 CATALOG(pg_rewrite,2618)
36 NameData rulename;
37 Oid ev_class;
38 int2 ev_attr;
39 char ev_type;
40 char ev_enabled;
41 bool is_instead;
43 /* NB: remaining fields must be accessed via heap_getattr */
44 text ev_qual;
45 text ev_action;
46 } FormData_pg_rewrite;
48 /* ----------------
49 * Form_pg_rewrite corresponds to a pointer to a tuple with
50 * the format of pg_rewrite relation.
51 * ----------------
53 typedef FormData_pg_rewrite *Form_pg_rewrite;
55 /* ----------------
56 * compiler constants for pg_rewrite
57 * ----------------
59 #define Natts_pg_rewrite 8
60 #define Anum_pg_rewrite_rulename 1
61 #define Anum_pg_rewrite_ev_class 2
62 #define Anum_pg_rewrite_ev_attr 3
63 #define Anum_pg_rewrite_ev_type 4
64 #define Anum_pg_rewrite_ev_enabled 5
65 #define Anum_pg_rewrite_is_instead 6
66 #define Anum_pg_rewrite_ev_qual 7
67 #define Anum_pg_rewrite_ev_action 8
69 #endif /* PG_REWRITE_H */