Re: VACUUM fails to parse 0 and 1 as boolean value

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: VACUUM fails to parse 0 and 1 as boolean value
Дата
Msg-id 20190521053132.GG1921@paquier.xyz
обсуждение исходный текст
Ответ на Re: VACUUM fails to parse 0 and 1 as boolean value  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: VACUUM fails to parse 0 and 1 as boolean value  (Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>)
Re: VACUUM fails to parse 0 and 1 as boolean value  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Mon, May 20, 2019 at 09:55:59AM -0400, Robert Haas wrote:
> Well, it's confusing that we're not consistent about which spellings
> are accepted.  The GUC system accepts true/false, on/off, and 0/1, so
> it seems reasonable to me to standardize on that treatment across the
> board.  That's not necessarily something we have to do for v12, but
> longer-term, consistency is of value.

+1.

Note: boolean GUCs accept a bit more: yes, no, tr, fa, and their upper
case flavors, etc.  These are everything parse_bool():bool.c accepts
as valid values.
--
Michael

Вложения

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: clean up docs for v12
Следующее
От: Paul A Jungwirth
Дата:
Сообщение: Re: docs about FKs referencing partitioned tables