PostgreSQL Source Code git master
pg_publication_namespace.h
Go to the documentation of this file.
1/*-------------------------------------------------------------------------
2 *
3 * pg_publication_namespace.h
4 * definition of the system catalog for mappings between schemas and
5 * publications (pg_publication_namespace)
6 *
7 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
9 *
10 * src/include/catalog/pg_publication_namespace.h
11 *
12 * NOTES
13 * The Catalog.pm module reads this file and derives schema
14 * information.
15 *
16 *-------------------------------------------------------------------------
17 */
18#ifndef PG_PUBLICATION_NAMESPACE_H
19#define PG_PUBLICATION_NAMESPACE_H
20
21#include "catalog/genbki.h"
22#include "catalog/pg_publication_namespace_d.h" /* IWYU pragma: export */
23
24
25/* ----------------
26 * pg_publication_namespace definition. cpp turns this into
27 * typedef struct FormData_pg_publication_namespace
28 * ----------------
29 */
30CATALOG(pg_publication_namespace,6237,PublicationNamespaceRelationId)
31{
32 Oid oid; /* oid */
33 Oid pnpubid BKI_LOOKUP(pg_publication); /* Oid of the publication */
34 Oid pnnspid BKI_LOOKUP(pg_namespace); /* Oid of the schema */
36
37/* ----------------
38 * Form_pg_publication_namespace corresponds to a pointer to a tuple with
39 * the format of pg_publication_namespace relation.
40 * ----------------
41 */
43
44DECLARE_UNIQUE_INDEX_PKEY(pg_publication_namespace_oid_index, 6238, PublicationNamespaceObjectIndexId, pg_publication_namespace, btree(oid oid_ops));
45DECLARE_UNIQUE_INDEX(pg_publication_namespace_pnnspid_pnpubid_index, 6239, PublicationNamespacePnnspidPnpubidIndexId, pg_publication_namespace, btree(pnnspid oid_ops, pnpubid oid_ops));
46
47MAKE_SYSCACHE(PUBLICATIONNAMESPACE, pg_publication_namespace_oid_index, 64);
48MAKE_SYSCACHE(PUBLICATIONNAMESPACEMAP, pg_publication_namespace_pnnspid_pnpubid_index, 64);
49
50#endif /* PG_PUBLICATION_NAMESPACE_H */
#define BKI_LOOKUP(catalog)
Definition: genbki.h:46
MAKE_SYSCACHE(PUBLICATIONNAMESPACE, pg_publication_namespace_oid_index, 64)
CATALOG(pg_publication_namespace, 6237, PublicationNamespaceRelationId)
DECLARE_UNIQUE_INDEX(pg_publication_namespace_pnnspid_pnpubid_index, 6239, PublicationNamespacePnnspidPnpubidIndexId, pg_publication_namespace, btree(pnnspid oid_ops, pnpubid oid_ops))
FormData_pg_publication_namespace * Form_pg_publication_namespace
FormData_pg_publication_namespace
DECLARE_UNIQUE_INDEX_PKEY(pg_publication_namespace_oid_index, 6238, PublicationNamespaceObjectIndexId, pg_publication_namespace, btree(oid oid_ops))
unsigned int Oid
Definition: postgres_ext.h:32