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-2005, PostgreSQL Global Development Group
12 * Portions Copyright (c) 1994, Regents of the University of California
14 * $PostgreSQL: pgsql/src/include/catalog/pg_rewrite.h,v 1.25 2005/04/14 01:38:21 tgl Exp $
17 * the genbki.sh script reads this file and generates .bki
18 * information from the DATA() statements.
20 *-------------------------------------------------------------------------
26 * postgres.h contains the system type definitions and the
27 * CATALOG(), BKI_BOOTSTRAP and DATA() sugar words so this file
28 * can be read by both genbki.sh and the C compiler.
33 * pg_rewrite definition. cpp turns this into
34 * typedef struct FormData_pg_rewrite
37 #define RewriteRelationId 2618
39 CATALOG(pg_rewrite,2618)
47 /* NB: remaining fields must be accessed via heap_getattr */
50 } FormData_pg_rewrite;
53 * Form_pg_rewrite corresponds to a pointer to a tuple with
54 * the format of pg_rewrite relation.
57 typedef FormData_pg_rewrite *Form_pg_rewrite;
60 * compiler constants for pg_rewrite
63 #define Natts_pg_rewrite 7
64 #define Anum_pg_rewrite_rulename 1
65 #define Anum_pg_rewrite_ev_class 2
66 #define Anum_pg_rewrite_ev_attr 3
67 #define Anum_pg_rewrite_ev_type 4
68 #define Anum_pg_rewrite_is_instead 5
69 #define Anum_pg_rewrite_ev_qual 6
70 #define Anum_pg_rewrite_ev_action 7
72 #endif /* PG_REWRITE_H */