pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix minor issues in psql's new \dAc and related commands. 2+ messages / 1 participants [nested] [flat]
* pgsql: Fix minor issues in psql's new \dAc and related commands. @ 2020-08-02 21:01 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2020-08-02 21:01 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ master Details ------- https://git.postgresql.org/pg/commitdiff/533020d05045046a3481fdd92777de7bb2e30ab3 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(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Fix minor issues in psql's new \dAc and related commands. @ 2020-08-02 21:01 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2020-08-02 21:01 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2020-08-02 21:01 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2020-08-02 21:01 pgsql: Fix minor issues in psql's new \dAc and related commands. Tom Lane <tgl@sss.pgh.pa.us> 2020-08-02 21:01 pgsql: Fix minor issues in psql's new \dAc and related commands. Tom Lane <tgl@sss.pgh.pa.us>
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