pgsql: Improvements to psql \dAo and \dAp commands

From: Alexander Korotkov <akorotkov(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Improvements to psql \dAo and \dAp commands
Date: 2020-07-13 15:57:51
Message-ID: E1jv0pz-0002r8-Bk@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Improvements to psql \dAo and \dAp commands

* Strategy number and purpose are essential information for opfamily operator.
So, show those columns in non-verbose output.
* "Left/right arg type" \dAp column names are confusing, because those type
don't necessary match to function arguments. Rename them to "Registered
left/right type".
* Replace manual assembling of operator/procedure names with casts to
regoperator/regprocedure.
* Add schema-qualification for pg_catalog functions and tables.

Reported-by: Peter Eisentraut, Tom Lane
Reviewed-by: Tom Lane
Discussion: https://postgr.es/m/2edc7b27-031f-b2b6-0db2-864241c91cb9%402ndquadrant.com
Backpatch-through: 13

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8d2ed66e4107ef27d05aef682c68af5952af7690

Modified Files
--------------
src/bin/psql/command.c | 2 +-
src/bin/psql/describe.c | 93 ++++++++++++++++++------------------
src/bin/psql/describe.h | 2 +-
src/test/regress/expected/psql.out | 98 +++++++++++++++++++-------------------
src/test/regress/sql/psql.sql | 2 +-
5 files changed, 98 insertions(+), 99 deletions(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Alexander Korotkov 2020-07-13 15:57:59 pgsql: Improvements to psql \dAo and \dAp commands
Previous Message Jeff Davis 2020-07-13 06:14:04 pgsql: Revert "Use CP_SMALL_TLIST for hash aggregate"