1 /*-------------------------------------------------------------------------
3 * pg_publication_namespace.h
4 * definition of the system catalog for mappings between schemas and
5 * publications (pg_publication_namespace)
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_namespace.h
13 * The Catalog.pm module reads this file and derives schema
16 *-------------------------------------------------------------------------
18 #ifndef PG_PUBLICATION_NAMESPACE_H
19 #define PG_PUBLICATION_NAMESPACE_H
21 #include "catalog/genbki.h"
22 #include "catalog/pg_publication_namespace_d.h"
26 * pg_publication_namespace definition. cpp turns this into
27 * typedef struct FormData_pg_publication_namespace
30 CATALOG(pg_publication_namespace
,8901,PublicationNamespaceRelationId
)
33 Oid pnpubid
BKI_LOOKUP(pg_publication
); /* Oid of the publication */
34 Oid pnnspid
BKI_LOOKUP(pg_namespace
); /* Oid of the schema */
35 } FormData_pg_publication_namespace
;
38 * Form_pg_publication_namespace corresponds to a pointer to a tuple with
39 * the format of pg_publication_namespace relation.
42 typedef FormData_pg_publication_namespace
*Form_pg_publication_namespace
;
44 DECLARE_UNIQUE_INDEX_PKEY(pg_publication_namespace_oid_index
, 8902, PublicationNamespaceObjectIndexId
, on pg_publication_namespace
using btree(oid oid_ops
));
45 DECLARE_UNIQUE_INDEX(pg_publication_namespace_pnnspid_pnpubid_index
, 8903, PublicationNamespacePnnspidPnpubidIndexId
, on pg_publication_namespace
using btree(pnnspid oid_ops
, pnpubid oid_ops
));
47 #endif /* PG_PUBLICATION_NAMESPACE_H */