pgsql: Fix breakage of "\pset format latex".

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix breakage of "\pset format latex".
Дата
Msg-id E1gRKtJ-0006sz-1K@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: pgsql: Clarify that cross-row constraints are unsupported
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Add CSV table output mode in psql.