doc-exports/docs/dws/dev/dws_04_1043.html
Lu, Huayi ef0ada5a59 DWS DEV 20240716 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2024-11-02 09:07:47 +00:00

5.6 KiB

PG_PUBLICATION_NAMESPACE

PG_PUBLICATION_NAMESPACE records the mapping between publications and schemas in the current database, which is a many-to-many mapping. This system catalog is supported only by clusters of version 8.2.0.100 or later.

Table 1 PG_PUBLICATION_NAMESPACE columns

Name

Type

Reference

Description

oid

oid

-

Row identifier (hidden attribute; displayed only when explicitly selected)

prpubid

oid

PG_PUBLICATION.oid

Publication OID in the mapping

pnnspid

oid

PG_NAMESPACE.oid

Schema OID in the mapping

Examples

View all mappings between publications and schemas.

1
2
3
4
5
SELECT * FROM pg_publication_namespace;
 pnpubid | pnnspid 
---------+---------
   16797 |   16796
(1 row)