Re: Doc patch on psql output formats

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: "Daniel Verite" <daniel@manitou-mail.org>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2018-11-14T21:41:27Z
Lists: pgsql-hackers
"Daniel Verite" <daniel@manitou-mail.org> writes:
> 	Tom Lane wrote:
>> Ugh.  Should we not fix the code so that it complains if there's
>> not a unique match?  I would bet that the code was also written
>> on the assumption that any abbrevation must be unique.

> Here's a patch making "\pset format" reject ambiguous abbreviations.

Pushed.  (I simplified the code a bit by using just one state variable,
and also made the error message more verbose.)

			regards, tom lane


Commits

  1. Fix breakage of "\pset format latex".

  2. Make psql's "\pset format" command reject non-unique abbreviations.

  3. Doc: remove claim that all \pset format options are unique in 1 letter.

  4. Reorganize format options of psql in alphabetical order