1 /*-------------------------------------------------------------------------
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
13 * The Catalog.pm module reads this file and derives schema
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"
25 * pg_publication_rel definition. cpp turns this into
26 * typedef struct FormData_pg_publication_rel
29 CATALOG(pg_publication_rel
,6106,PublicationRelRelationId
)
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
;
37 * Form_pg_publication_rel corresponds to a pointer to a tuple with
38 * the format of pg_publication_rel relation.
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 */