Re: EXCEPT TABLE - Case inconsistency for describe \d and \dRp+
Peter Smith <smithpb2250@gmail.com>
From: Peter Smith <smithpb2250@gmail.com>
To: Amit Kapila <amit.kapila16@gmail.com>
Cc: Álvaro Herrera <alvherre@kurilemu.de>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2026-04-20T02:56:40Z
Lists: pgsql-hackers
Attachments
- v3-0001-Fix-footer-titles-for-TABLE-describe.patch (application/octet-stream) patch v3-0001
- v3-0003-Fix-footer-titles-for-SCHEMA-describe.patch (application/octet-stream) patch v3-0003
- v3-0002-Fix-footer-titles-for-SEQUENCE-describe.patch (application/octet-stream) patch v3-0002
On Fri, Apr 17, 2026 at 3:24 PM Amit Kapila <amit.kapila16@gmail.com> wrote: > > On Fri, Apr 17, 2026 at 4:34 AM Peter Smith <smithpb2250@gmail.com> wrote: > > > > On Fri, Apr 17, 2026 at 12:10 AM Álvaro Herrera <alvherre@kurilemu.de> wrote: > > > > > > On 2026-Apr-10, Peter Smith wrote: > > > > > > > # -- describe the tables > > > > # \d t1 > > > > Table "public.t1" > > > > Column | Type | Collation | Nullable | Default > > > > --------+---------+-----------+----------+--------- > > > > a | integer | | | > > > > Except Publications: > > > > "pub1" > > > > > > I have a hard time understanding what an "except publication" is. I > > > think this would be clearer if the header said "Excluded from publications:" > > > > > > > I agree that your suggestion is clearer. > > > > If we make that change, then should the "Publications:" footer also be > > modified similarly (to "Included in publications:") so they match? > > > > e.g. > > > > CURRENTLY > > > > test_pub=# \d t1 > > Table "public.t1" > > Column | Type | Collation | Nullable | Default > > --------+---------+-----------+----------+--------- > > a | integer | | | > > Publications: > > "pub1" > > "pub2" > > Except publications: > > "pub3" > > > > ~~~ > > > > SUGGESTION > > > > test_pub=# \d t1 > > Table "public.t1" > > Column | Type | Collation | Nullable | Default > > --------+---------+-----------+----------+--------- > > a | integer | | | > > Included in publications: > > "pub1" > > "pub2" > > Excluded from publications: > > "pub3" > > > > ~~~ > > > > +1 for the proposal. It makes the description clear. > PSA v3 patches. v3-0001 - Fixed the TABLE describe footer titles as suggested. - "Included in publications:" - "Excluded from publications:" v3-0002 - Made similar footer title changes for SEQUENCE describe v3-0003 - Made similar footer title changes for SHCEMA describe. In passing, I found that this \dn describe output was not even being tested, so I added the missing regression test. ====== Kind Regards, Peter Smith. Fujitsu Australia.
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
psql: Improve describe footer titles for publications.
- 2e1d4fdb10e6 19 (unreleased) landed
-
Fix capitalization in publication describe output.
- 8f81c9235162 19 (unreleased) landed
-
Allow table exclusions in publications via EXCEPT TABLE.
- fd366065e06a 19 (unreleased) cited