]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Don't show tables redundantly when their schema is published.
authorAmit Kapila <akapila@postgresql.org>
Mon, 13 Jul 2026 03:57:47 +0000 (09:27 +0530)
committerAmit Kapila <akapila@postgresql.org>
Mon, 13 Jul 2026 03:57:47 +0000 (09:27 +0530)
commit1863452a4bfecfefc51336ecfc78837a164fbb10
tree71c9359bce392e2a6dc785e27408e2a14475a44d
parent2b8598a2b045b172a8f726ba130e9eb764dc0688
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@gmail.com>
Co-author: Jim Jones <jim.jones@uni-muenster.de>
Reviewed-by: Nisha Moond <nisha.moond412@gmail.com>
Reviewed-by: vignesh C <vignesh21@gmail.com>
Reviewed-by: Shlok Kyal <shlok.kyal.oss@gmail.com>
Discussion: https://postgr.es/m/CAHut%2BPvSOmRrQX%2BVrFYHtFipV9hM%3Dp99FeOwYCzkuU2BOaLu7Q%40mail.gmail.com
src/bin/psql/describe.c
src/test/regress/expected/publication.out
src/test/regress/sql/publication.sql