pgsql: Show "internal name" not "source code" in psql's \df+ command. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Show "internal name" not "source code" in psql's \df+ command.
Date
Msg-id E1pXrCo-001aW3-V7@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Show "internal name" not "source code" in psql's \df+ command.

Our previous habit of showing the full function body is really
pretty unfriendly for tabular viewing of functions, and now that
we have \sf and \ef commands there seems no good reason why \df+
has to do it.  It still seems to make sense to show prosrc for
internal and C-language functions, since in those cases prosrc
is just the C function name; but then let's rename the column to
"Internal name" which is a more accurate descriptor.

Isaac Morland

Discussion: https://postgr.es/m/CAMsGm5eqKc6J1=Lwn=ZONG=6ZDYWRQ4cgZQLqMuZGB1aVt_JBg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3dfae91f7a1293e0a57526edcfca8690c176c681

Modified Files
--------------
doc/src/sgml/ref/psql-ref.sgml     |  5 ++++-
src/bin/psql/describe.c            | 11 +++--------
src/test/regress/expected/psql.out | 28 ++++++++++++++++++++++++++++
src/test/regress/sql/psql.sql      | 23 +++++++++++++++++++++++
4 files changed, 58 insertions(+), 9 deletions(-)


pgsql-committers by date:

Previous
From: Thomas Munro
Date:
Subject: pgsql: Don't leak descriptors into subprograms.
Next
From: Tom Lane
Date:
Subject: pgsql: Harden new test case against force_parallel_mode = regress.