Don't show tables redundantly when their schema is published.

A table published both explicitly and through its schema (FOR TABLES IN
SCHEMA) was listed twice by \dRp+ and \d.  Since publishing a schema
publishes its tables in full, the explicit entry's row filter has no
effect; suppress it when the same publication also publishes the table's
schema.

Author: Peter Smith <[email protected]>
Co-author: Jim Jones <[email protected]>
Reviewed-by: Nisha Moond <[email protected]>
Reviewed-by: vignesh C <[email protected]>
Reviewed-by: Shlok Kyal <[email protected]>
Discussion: 
https://postgr.es/m/CAHut%2BPvSOmRrQX%2BVrFYHtFipV9hM%3Dp99FeOwYCzkuU2BOaLu7Q%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1863452a4bfecfefc51336ecfc78837a164fbb10

Modified Files
--------------
src/bin/psql/describe.c                   | 25 ++++++++++++++++++++++++-
src/test/regress/expected/publication.out | 29 +++++++++++++++++++++++------
src/test/regress/sql/publication.sql      |  5 +++++
3 files changed, 52 insertions(+), 7 deletions(-)

Reply via email to