PostgreSQL Source Code git master
Loading...
Searching...
No Matches
pg_rewrite.h
Go to the documentation of this file.
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-2026, 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" /* IWYU pragma: export */
26
27/* ----------------
28 * pg_rewrite definition. cpp turns this into
29 * typedef struct FormData_pg_rewrite
30 * ----------------
31 */
33
35{
36 Oid oid; /* oid */
37 NameData rulename;
39 char ev_type;
40 char ev_enabled;
41 bool is_instead;
42
43#ifdef CATALOG_VARLEN /* variable-length fields start here */
46#endif
48
50
51/* ----------------
52 * Form_pg_rewrite corresponds to a pointer to a tuple with
53 * the format of pg_rewrite relation.
54 * ----------------
55 */
57
59
62
64
65#endif /* PG_REWRITE_H */
#define BEGIN_CATALOG_STRUCT
Definition genbki.h:37
#define DECLARE_UNIQUE_INDEX_PKEY(name, oid, oidmacro, tblname, decl)
Definition genbki.h:105
#define BKI_LOOKUP(catalog)
Definition genbki.h:65
#define END_CATALOG_STRUCT
Definition genbki.h:38
#define DECLARE_UNIQUE_INDEX(name, oid, oidmacro, tblname, decl)
Definition genbki.h:104
#define BKI_FORCE_NOT_NULL
Definition genbki.h:52
#define DECLARE_TOAST(name, toastoid, indexoid)
Definition genbki.h:82
#define CATALOG(name, oid, oidmacro)
Definition genbki.h:42
#define MAKE_SYSCACHE(name, idxname, nbuckets)
Definition genbki.h:146
END_CATALOG_STRUCT typedef FormData_pg_rewrite * Form_pg_rewrite
Definition pg_rewrite.h:56
FormData_pg_rewrite
Definition pg_rewrite.h:47
unsigned int Oid
static int fb(int x)
Definition c.h:793