Update copyright for 2022
[pgsql.git] / src / include / catalog / pg_publication_rel.h
blob0ff37162258d3ec5f80a91f96de7db2c99f30337
1 /*-------------------------------------------------------------------------
3 * pg_publication_rel.h
4 * definition of the system catalog for mappings between relations and
5 * publications (pg_publication_rel)
7 * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * src/include/catalog/pg_publication_rel.h
12 * NOTES
13 * The Catalog.pm module reads this file and derives schema
14 * information.
16 *-------------------------------------------------------------------------
18 #ifndef PG_PUBLICATION_REL_H
19 #define PG_PUBLICATION_REL_H
21 #include "catalog/genbki.h"
22 #include "catalog/pg_publication_rel_d.h"
24 /* ----------------
25 * pg_publication_rel definition. cpp turns this into
26 * typedef struct FormData_pg_publication_rel
27 * ----------------
29 CATALOG(pg_publication_rel,6106,PublicationRelRelationId)
31 Oid oid; /* oid */
32 Oid prpubid BKI_LOOKUP(pg_publication); /* Oid of the publication */
33 Oid prrelid BKI_LOOKUP(pg_class); /* Oid of the relation */
34 } FormData_pg_publication_rel;
36 /* ----------------
37 * Form_pg_publication_rel corresponds to a pointer to a tuple with
38 * the format of pg_publication_rel relation.
39 * ----------------
41 typedef FormData_pg_publication_rel *Form_pg_publication_rel;
43 DECLARE_UNIQUE_INDEX_PKEY(pg_publication_rel_oid_index, 6112, PublicationRelObjectIndexId, on pg_publication_rel using btree(oid oid_ops));
44 DECLARE_UNIQUE_INDEX(pg_publication_rel_prrelid_prpubid_index, 6113, PublicationRelPrrelidPrpubidIndexId, on pg_publication_rel using btree(prrelid oid_ops, prpubid oid_ops));
46 #endif /* PG_PUBLICATION_REL_H */