From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Make psql's "\pset format" command reject non-unique abbreviatio
Date: Wed, 14 Nov 2018 21:40:10 +0000
Message-ID: <E1gN2tO-0005lu-EO@gemulon.postgresql.org> (raw)
Make psql's "\pset format" command reject non-unique abbreviations.
The previous behavior of preferring the oldest match had the advantage
of not breaking existing scripts when we add a conflicting format name;
but that behavior was undocumented and fragile (it seems just luck that
commit add9182e5 didn't break it). Let's go over to the less mistake-
prone approach of complaining when there are multiple matches.
Since this is a small compatibility break, no back-patch.
Daniel Vérité
Discussion: https://postgr.es/m/cb7e1caf-3ea6-450d-af28-f524903a030c@manitou-mail.org
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/eaf746a5b85a6a794e659f0954cf0015e42213f4
Modified Files
--------------
src/bin/psql/command.c | 59 +++++++++++++++++++++++++++++++++++---------------
1 file changed, 41 insertions(+), 18 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: Make psql's "\pset format" command reject non-unique abbreviatio
In-Reply-To: <E1gN2tO-0005lu-EO@gemulon.postgresql.org>
References: <E1gN2tO-0005lu-EO@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