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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Show "internal name" not "source code" in psql's \df+ command.
Date: 2023-03-02 22:15:19
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: 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




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

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2023-03-02 22:47:34 pgsql: Harden new test case against force_parallel_mode = regress.
Previous Message Thomas Munro 2023-03-02 21:56:31 pgsql: Don't leak descriptors into subprograms.