1 /*-------------------------------------------------------------------------
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-2014, PostgreSQL Global Development Group
12 * Portions Copyright (c) 1994, Regents of the University of California
14 * src/include/catalog/pg_rewrite.h
17 * the genbki.pl script reads this file and generates .bki
18 * information from the DATA() statements.
20 *-------------------------------------------------------------------------
25 #include "catalog/genbki.h"
28 * pg_rewrite definition. cpp turns this into
29 * typedef struct FormData_pg_rewrite
32 #define RewriteRelationId 2618
34 CATALOG(pg_rewrite,2618)
42 #ifdef CATALOG_VARLEN /* variable-length fields start here */
44 pg_node_tree ev_action;
46 } FormData_pg_rewrite;
49 * Form_pg_rewrite corresponds to a pointer to a tuple with
50 * the format of pg_rewrite relation.
53 typedef FormData_pg_rewrite *Form_pg_rewrite;
56 * compiler constants for pg_rewrite
59 #define Natts_pg_rewrite 7
60 #define Anum_pg_rewrite_rulename 1
61 #define Anum_pg_rewrite_ev_class 2
62 #define Anum_pg_rewrite_ev_type 3
63 #define Anum_pg_rewrite_ev_enabled 4
64 #define Anum_pg_rewrite_is_instead 5
65 #define Anum_pg_rewrite_ev_qual 6
66 #define Anum_pg_rewrite_ev_action 7
68 #endif /* PG_REWRITE_H */