1 /*-------------------------------------------------------------------------
4 * definition of the system "rewrite-rule" relation (pg_rewrite)
5 * along with the relation's initial contents.
8 * Copyright (c) 1994, Regents of the University of California
10 * $Id: pg_rewrite.h,v 1.1 1996/08/28 01:57:11 scrappy Exp $
13 * the genbki.sh script reads this file and generates .bki
14 * information from the DATA() statements.
16 *-------------------------------------------------------------------------
22 * postgres.h contains the system type definintions and the
23 * CATALOG(), BOOTSTRAP and DATA() sugar words so this file
24 * can be read by both genbki.sh and the C compiler.
30 * pg_rewrite definition. cpp turns this into
31 * typedef struct FormData_pg_rewrite
40 text ev_qual; /* VARLENA */
41 text action; /* VARLENA */
42 } FormData_pg_rewrite;
45 * Form_pg_rewrite corresponds to a pointer to a tuple with
46 * the format of pg_rewrite relation.
49 typedef FormData_pg_rewrite *Form_pg_rewrite;
52 * compiler constants for pg_rewrite
55 #define Natts_pg_rewrite 7
56 #define Anum_pg_rewrite_rulename 1
57 #define Anum_pg_rewrite_ev_type 2
58 #define Anum_pg_rewrite_ev_class 3
59 #define Anum_pg_rewrite_ev_attr 4
60 #define Anum_pg_rewrite_is_instead 5
61 #define Anum_pg_rewrite_ev_qual 6
62 #define Anum_pg_rewrite_action 7
64 #endif /* PG_REWRITE_H */