Re: [HACKERS] One-shot expanded output in psql using \gx

Поиск
Список
Период
Сортировка
От Christoph Berg
Тема Re: [HACKERS] One-shot expanded output in psql using \gx
Дата
Msg-id 20170306124233.c64cylgyot7ipeix@msg.credativ.de
обсуждение исходный текст
Ответ на Re: [HACKERS] One-shot expanded output in psql using \gx  ("Daniel Verite" <daniel@manitou-mail.org>)
Ответы Re: [HACKERS] One-shot expanded output in psql using \gx  ("Daniel Verite" <daniel@manitou-mail.org>)
Список pgsql-hackers
Re: Daniel Verite 2017-03-03 <4d84079e-325b-48c5-83e6-bb54bb567bb1@manitou-mail.org>
> - tab-completion: works but the list in tab-complete.c:backslash_commands[]
> is sorted alphabetically so "\\gx" should come after "\\gset"

Good catch, it was still in that place from when it was named \G.

In the \? output I left it directly after \g because the help text
starts with "as \g ..." and it is IMHO more closely related to \g than
\gexec and \gset which differ more in functionality.

>     unsigned short int expanded;    /* expanded/vertical output (if supported
> by
>                      * output format); 0=no, 1=yes, 2=auto */
> Although there is still code that puts true/false in this variable
> (probably because it was a bool before?), I assume that for new
> code, assigning 0/1/2 should be preferred.

Right. I had seen both being used and went with "true", but "1" is
better style.

Both fixed, thanks for the review! Version 3 attached.

Christoph
-- 
Senior Berater, Tel.: +49 2166 9901 187
credativ GmbH, HRB Mönchengladbach 12080, USt-ID-Nummer: DE204566209
Trompeterallee 108, 41189 Mönchengladbach
Geschäftsführung: Dr. Michael Meskes, Jörg Folz, Sascha Heuer
pgp fingerprint: 5C48 FE61 57F4 9179 5970  87C6 4C5A 6BAB 12D2 A7AE

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] PATCH: Configurable file mode mask
Следующее
От: Giuseppe Broccolo
Дата:
Сообщение: [HACKERS] dump a comment of a TSDictionary