Doc patch on psql output formats
Daniel Verite <daniel@manitou-mail.org>
From: "Daniel Verite" <daniel@manitou-mail.org>
To: pgsql-hackers@lists.postgresql.org
Date: 2018-11-06T14:46:32Z
Lists: pgsql-hackers
Attachments
- doc-psql-output-formats.patch (text/plain) patch
Hi, psql's documentation has this mention about output formats: "Unique abbreviations are allowed. (That would mean one letter is enough.)" but "one letter is enough" is not true since 9.3 that added "latex-longtable" sharing the same start as "latex", and then 9.5 added "asciidoc" with the same first letter as "aligned". When a non-unique abbreviation is used, psql uses the first match in an arbitrary order defined in do_pset() by a cascade of pg_strncasecmp(). (the recent commit add9182e reorders them alphabetically but it turns out that it doesn't change the relative positions of "aligned" / "asciidoc", or "latex" / "latex-longtables" so \pset format a and \pset format l will continue to select "aligned" and "latex" as before). Anyway, "Unique abbreviations are allowed" deserves to be changed as well. PFA a doc patch to say simply "Abbreviations are allowed". Best regards, -- Daniel Vérité PostgreSQL-powered mailer: http://www.manitou-mail.org Twitter: @DanielVerite
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