agora inbox for pgsql-committers@postgresql.org  
help / color / mirror / Atom feed
From: Amit Kapila <akapila@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Don't show tables redundantly when their schema is published.
Date: Mon, 13 Jul 2026 03:58:37 +0000
Message-ID: <E1wj7oS-000qBO-2g@gemulon.postgresql.org> (raw)

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

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(-)



Message-ID: <E1wj7oS-000qBO-2g@gemulon.postgresql.org>
Permalink:  ../E1wj7oS-000qBO-2g@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1wj7oS-000qBO-2g@gemulon.postgresql.org

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: akapila@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Don't show tables redundantly when their schema is published.
  In-Reply-To: <E1wj7oS-000qBO-2g@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox