]> granicus.if.org Git - postgresql/blob - src/include/catalog/pg_rewrite.h
Improve consistency of comments in system catalog headers.
[postgresql] / src / include / catalog / pg_rewrite.h
1 /*-------------------------------------------------------------------------
2  *
3  * pg_rewrite.h
4  *        definition of the "rewrite rule" system catalog (pg_rewrite)
5  *
6  * As of Postgres 7.3, the primary key for this table is <ev_class, rulename>
7  * --- ie, rule names are only unique among the rules of a given table.
8  *
9  *
10  * Portions Copyright (c) 1996-2018, PostgreSQL Global Development Group
11  * Portions Copyright (c) 1994, Regents of the University of California
12  *
13  * src/include/catalog/pg_rewrite.h
14  *
15  * NOTES
16  *        The Catalog.pm module reads this file and derives schema
17  *        information.
18  *
19  *-------------------------------------------------------------------------
20  */
21 #ifndef PG_REWRITE_H
22 #define PG_REWRITE_H
23
24 #include "catalog/genbki.h"
25 #include "catalog/pg_rewrite_d.h"
26
27 /* ----------------
28  *              pg_rewrite definition.  cpp turns this into
29  *              typedef struct FormData_pg_rewrite
30  * ----------------
31  */
32 CATALOG(pg_rewrite,2618,RewriteRelationId)
33 {
34         NameData        rulename;
35         Oid                     ev_class;
36         char            ev_type;
37         char            ev_enabled;
38         bool            is_instead;
39
40 #ifdef CATALOG_VARLEN                   /* variable-length fields start here */
41         pg_node_tree ev_qual;
42         pg_node_tree ev_action;
43 #endif
44 } FormData_pg_rewrite;
45
46 /* ----------------
47  *              Form_pg_rewrite corresponds to a pointer to a tuple with
48  *              the format of pg_rewrite relation.
49  * ----------------
50  */
51 typedef FormData_pg_rewrite *Form_pg_rewrite;
52
53 #endif                                                  /* PG_REWRITE_H */