Re: boolean and bool in documentation

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: boolean and bool in documentation
Дата
Msg-id 23217.1550795449@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: boolean and bool in documentation  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: boolean and bool in documentation  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Bruce Momjian <bruce@momjian.us> writes:
> On Tue, Feb 19, 2019 at 12:56:19AM +0900, Masahiko Sawada wrote:
>> AFAICS there seems not to be explicit rules and policies for usage of
>> 'boolean' and 'bool'. We use 'bool' for colum data type of almost
>> system catalogs but use 'boolean' for some catalogs (pg_pltemplate and
>> pg_policy). The same is true for functions and system views. Is it
>> better to unify them into 'boolean' for consistency and so as not
>> unnecessarily confuse users? FYI the name of boolean type is 'boolean'
>> in the standard.

> Yes, I think so.

FWIW, I'm not excited about this.  We accept "bool" and "boolean"
interchangeably, and it does not seem like an improvement for the
docs to use only one form.  By that argument, somebody should go
through the docs and nuke every usage of "::" in favor of
SQL-standard CAST(...) notation, every usage of "float8"
in favor of DOUBLE PRECISION, every usage of "timestamptz" in
favor of the long form, etc etc.

            regards, tom lane


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

Предыдущее
От: "Jamison, Kirk"
Дата:
Сообщение: RE: Timeout parameters
Следующее
От: Haribabu Kommi
Дата:
Сообщение: Removal of duplicate variable declarations in fe-connect.c