pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix breakage of "\pset format latex".
Date: Mon, 26 Nov 2018 17:41:49 +0000
Message-ID: <E1gRKtJ-0006sz-1K@gemulon.postgresql.org> (raw)

Fix breakage of "\pset format latex".

Commit eaf746a5b unintentionally made psql's "latex" output format
inaccessible, since not only "latex" but all abbreviations of it
were considered ambiguous against "latex-longtable".  Let's go
back to the longstanding behavior that all shortened versions
mean "latex", and you have to write at least "latex-" to get
"latex-longtable".  This leaves the only difference from pre-v12
behavior being that "\pset format a" is considered ambiguous.

The fact that the regression tests didn't expose this is pretty bad,
but fixing it is material for a separate commit.

Discussion: https://postgr.es/m/cb7e1caf-3ea6-450d-af28-f524903a030c@manitou-mail.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a7eece4fc9a416129aa692271972be5a30daa68c

Modified Files
--------------
src/bin/psql/command.c | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)



Message-ID: <E1gRKtJ-0006sz-1K@gemulon.postgresql.org>
Permalink:  ../E1gRKtJ-0006sz-1K@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gRKtJ-0006sz-1K@gemulon.postgresql.org

 · 

reply

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: Fix breakage of "\pset format latex".
  In-Reply-To: <E1gRKtJ-0006sz-1K@gemulon.postgresql.org>
  References: <E1gRKtJ-0006sz-1K@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