Files
doc-exports/docs/dws/dev/dws_04_1045.html
luhuayi 177cd61a57 DWS DEVG 910.211 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: luhuayi <luhuayi@huawei.com>
Co-committed-by: luhuayi <luhuayi@huawei.com>
2025-05-05 07:44:03 +00:00

5.5 KiB

PG_PUBLICATION_TABLES

PG_PUBLICATION_TABLES displays the mapping between a publication and its published tables. Unlike the underlying system catalog PG_PUBLICATION_REL, this view expands the publications defined as FOR ALL TABLES and FOR ALL TABLES IN SCHEMA, in which each publishable table has a row. This view is supported only by clusters of version 8.2.0.100 or later.

Table 1 PG_PUBLICATION_TABLES columns

Column

Type

Description

pubname

Name

Publication name

schemaname

Name

Name of the schema of a table

tablename

Name

Table name

Examples

Query all published tables.

1
2
3
4
5
6
SELECT * FROM PG_PUBLICATION_TABLES;
 pubname | schemaname | tablename 
---------+------------+-----------
 mypub   | public     | t1
 mypub   | public     | t2
(2 rows)