Summary
The catalog pg_publication_namespace contains the mapping between schemas and publications in the database. This is a many-to-many mapping.
(Description quoted from the official PostgreSQL documentation.)
Columns
The pg_publication_namespace system catalog exposes the following columns (names, types and descriptions are taken verbatim from the PostgreSQL documentation):
oidoid
Row identifierpnpubidoidreferencespg_publication.oid
Reference to publicationpnnspidoidreferencespg_namespace.oid
Reference to schema
Related catalogs
This object references the following other system catalogs:
pnpubid→pg_publicationpnnspid→pg_namespace
Version applicability
Present in PostgreSQL 17, 18, 19 (verified against each release’s documentation). This is a long-standing system object that also exists in earlier PostgreSQL releases.
Related & references
Reference: PostgreSQL documentation — pg_publication_namespace.