mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Extend pg_publication_tables to display column list and row filter.
Commit923def9a53
and52e4f0cd47
allowed to specify column lists and row filters for publication tables. This commit extends the pg_publication_tables view and pg_get_publication_tables function to display that information. This information will be useful to users and we also need this for the later commit that prohibits combining multiple publications with different column lists for the same table. Author: Hou Zhijie Reviewed By: Amit Kapila, Alvaro Herrera, Shi Yu, Takamichi Osumi Discussion: https://postgr.es/m/202204251548.mudq7jbqnh7r@alvherre.pgsql
This commit is contained in:
@ -9691,7 +9691,7 @@ SCRAM-SHA-256$<replaceable><iteration count></replaceable>:<replaceable>&l
|
||||
|
||||
<row>
|
||||
<entry><link linkend="view-pg-publication-tables"><structname>pg_publication_tables</structname></link></entry>
|
||||
<entry>publications and their associated tables</entry>
|
||||
<entry>publications and information of their associated tables</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
@ -11635,8 +11635,8 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
|
||||
|
||||
<para>
|
||||
The view <structname>pg_publication_tables</structname> provides
|
||||
information about the mapping between publications and the tables they
|
||||
contain. Unlike the underlying catalog
|
||||
information about the mapping between publications and information of
|
||||
tables they contain. Unlike the underlying catalog
|
||||
<link linkend="catalog-pg-publication-rel"><structname>pg_publication_rel</structname></link>,
|
||||
this view expands publications defined as <literal>FOR ALL TABLES</literal>
|
||||
and <literal>FOR ALL TABLES IN SCHEMA</literal>, so for such publications
|
||||
@ -11687,6 +11687,27 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
|
||||
Name of table
|
||||
</para></entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry role="catalog_table_entry"><para role="column_definition">
|
||||
<structfield>attnames</structfield> <type>name[]</type>
|
||||
(references <link linkend="catalog-pg-attribute"><structname>pg_attribute</structname></link>.<structfield>attname</structfield>)
|
||||
</para>
|
||||
<para>
|
||||
Names of table columns included in the publication. This contains all
|
||||
the columns of the table when the user didn't specify the column list
|
||||
for the table.
|
||||
</para></entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry role="catalog_table_entry"><para role="column_definition">
|
||||
<structfield>rowfilter</structfield> <type>text</type>
|
||||
</para>
|
||||
<para>
|
||||
Expression for the table's publication qualifying condition
|
||||
</para></entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
|
Reference in New Issue
Block a user