From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix minor issues in psql's new \dAc and related commands.
Date: Sun, 02 Aug 2020 21:01:09 +0000
Message-ID: <E1k2L6T-00021s-Vy@gemulon.postgresql.org> (raw)
Fix minor issues in psql's new \dAc and related commands.
The type-name pattern in \dAc and \dAf was matched only to the actual
pg_type.typname string, which is fairly user-unfriendly in cases where
that is not what's shown to the user by format_type (compare "_int4"
and "integer[]"). Make this code match what \dT does, i.e. match the
pattern against either typname or format_type() output. Also fix its
broken handling of schema-name restrictions. (IOW, make these
processSQLNamePattern calls match \dT's.) While here, adjust
whitespace to make the query a little prettier in -E output, too.
Also improve some inaccuracies and shaky grammar in the related
documentation.
Noted while working on a patch for intarray's opclasses; I wondered
why I couldn't get a match to "integer*" for the input type name.
Branch
------
REL_13_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/719304a3043d9f60247df371f55236058a7f3caa
Modified Files
--------------
doc/src/sgml/indices.sgml | 9 +++++++++
doc/src/sgml/ref/psql-ref.sgml | 38 ++++++++++++++++++++------------------
src/bin/psql/describe.c | 28 +++++++++++++++++++---------
3 files changed, 48 insertions(+), 27 deletions(-)
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: Fix minor issues in psql's new \dAc and related commands.
In-Reply-To: <E1k2L6T-00021s-Vy@gemulon.postgresql.org>
References: <E1k2L6T-00021s-Vy@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