pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Show "internal name" not "source code" in psql's \df+ command.
Date: Thu, 02 Mar 2023 22:15:19 +0000
Message-ID: <E1pXrCo-001aW3-V7@gemulon.postgresql.org> (raw)

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



Message-ID: <E1pXrCo-001aW3-V7@gemulon.postgresql.org>
Permalink:  ../E1pXrCo-001aW3-V7@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1pXrCo-001aW3-V7@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Show "internal name" not "source code" in psql's \df+ command.
  In-Reply-To: <E1pXrCo-001aW3-V7@gemulon.postgresql.org>
  References: <E1pXrCo-001aW3-V7@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox