psql: Show comments in \dRp+, \dRs+, and \dX+ psql meta-commands.
Fujii Masao <fujii@postgresql.org>
psql: Show comments in \dRp+, \dRs+, and \dX+ psql meta-commands. Previously, the psql meta-commands that list publications, subscriptions, and extended statistics did not display their associated comments, whereas other \d meta-commands did. This made it inconvenient for users to view these objects together with their descriptions. This commit improves \dRp+ and \dRs+ to include comments for publications and subscriptions. It also extends the \dX meta-command to accept the + option, allowing comments for extended statistics to be shown when requested. Author: Fujii Masao <masao.fujii@gmail.com> Co-authored-by: Jim Jones <jim.jones@uni-muenster.de> Reviewed-by: Matheus Alcantara <matheusssilv97@gmail.com> Reviewed-by: Chao Li <li.evan.chao@gmail.com> Discussion: https://postgr.es/m/CAHGQGwGL4JqiKA26fnGx-cTM=VzoTs_uzqejvj4Fawyr4uLUUw@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/psql-ref.sgml | modified | +3 −1 |
| src/bin/psql/command.c | modified | +1 −1 |
| src/bin/psql/describe.c | modified | +27 −13 |
| src/bin/psql/describe.h | modified | +1 −1 |
| src/bin/psql/help.c | modified | +1 −1 |
| src/test/regress/expected/publication.out | modified | +228 −228 |
| src/test/regress/expected/stats_ext.out | modified | +30 −30 |
| src/test/regress/expected/subscription.out | modified | +88 −88 |
Discussion
- Show comments in \dRp+, \dRs+, and \dX+ psql meta-commands 20 messages · 2026-02-16 → 2026-02-28