doc-exports/docs/dws/dev/dws_04_1045.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.4 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

Name

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)