1/*-------------------------------------------------------------------------
4 * definition of the "rewrite rule" system catalog (pg_rewrite)
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.
10 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
11 * Portions Copyright (c) 1994, Regents of the University of California
13 * src/include/catalog/pg_rewrite.h
16 * The Catalog.pm module reads this file and derives schema
19 *-------------------------------------------------------------------------
25#include "catalog/pg_rewrite_d.h" /* IWYU pragma: export */
28 * pg_rewrite definition. cpp turns this into
29 * typedef struct FormData_pg_rewrite
32 CATALOG(pg_rewrite,2618,RewriteRelationId)
41#ifdef CATALOG_VARLEN /* variable-length fields start here */
48 * Form_pg_rewrite corresponds to a pointer to a tuple with
49 * the format of pg_rewrite relation.
57 DECLARE_UNIQUE_INDEX(pg_rewrite_rel_rulename_index, 2693, RewriteRelRulenameIndexId, pg_rewrite, btree(ev_class oid_ops, rulename name_ops));
61#endif /* PG_REWRITE_H */
#define BKI_LOOKUP(catalog)
#define BKI_FORCE_NOT_NULL
DECLARE_UNIQUE_INDEX_PKEY(pg_rewrite_oid_index, 2692, RewriteOidIndexId, pg_rewrite, btree(oid oid_ops))
MAKE_SYSCACHE(RULERELNAME, pg_rewrite_rel_rulename_index, 8)
DECLARE_UNIQUE_INDEX(pg_rewrite_rel_rulename_index, 2693, RewriteRelRulenameIndexId, pg_rewrite, btree(ev_class oid_ops, rulename name_ops))
CATALOG(pg_rewrite, 2618, RewriteRelationId)
DECLARE_TOAST(pg_rewrite, 2838, 2839)
FormData_pg_rewrite * Form_pg_rewrite