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-26T14:39:50Z
Lists: pgsql-hackers
"Daniel Verite" <daniel@manitou-mail.org> writes: > Tom Lane wrote: >> As of HEAD, it's impossible to select latex output format >> at all: >> regression=# \pset format latex >> \pset: ambiguous abbreviation "latex" matches both "latex" and >> "latex-longtable" > Oops! >> We could fix that by adding a special case to accept an exact match >> immediately. > Personally I would favor that one, but to me the problem is that > allowing abbreviations doesn't really work well in the long run, > that is, if new format names are going to appear recurringly in the > future. Perhaps, but that ship sailed years ago. I do not think we can or should remove the ability to write abbreviations here. People writing scripts are obviously taking a risk of future breakage if they abbreviate, but how is it an improvement in their lives if we change the risk from "uncertain" to "100%"? regards, tom lane
Commits
-
Fix breakage of "\pset format latex".
- a7eece4fc9a4 12.0 landed
-
Make psql's "\pset format" command reject non-unique abbreviations.
- eaf746a5b85a 12.0 landed
-
Doc: remove claim that all \pset format options are unique in 1 letter.
- b8182d6293d9 11.2 landed
- 6a312b2587c6 9.4.21 landed
- 5f2937734cd1 10.7 landed
- 51eaaafb850b 12.0 landed
- 44dc82690d4e 9.5.16 landed
- 033d45a1008f 9.6.12 landed
-
Reorganize format options of psql in alphabetical order
- add9182e5908 12.0 cited