| From: | Amit Kapila <akapila(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Don't show tables redundantly when their schema is published. |
| Date: | 2026-07-13 03:58:37 |
| Message-ID: | E1wj7oS-000qBO-2g@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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 <smithpb2250(at)gmail(dot)com>
Co-author: Jim Jones <jim(dot)jones(at)uni-muenster(dot)de>
Reviewed-by: Nisha Moond <nisha(dot)moond412(at)gmail(dot)com>
Reviewed-by: vignesh C <vignesh21(at)gmail(dot)com>
Reviewed-by: Shlok Kyal <shlok(dot)kyal(dot)oss(at)gmail(dot)com>
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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Eisentraut | 2026-07-13 09:15:16 | pgsql: Clean up readlink() return type |
| Previous Message | Michael Paquier | 2026-07-13 00:20:36 | pgsql: Add recovery/startup test with backup_label and missing checkpoi |