Re: [GENERAL] JSON objects merge using || operator

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [GENERAL] JSON objects merge using || operator
Дата
Msg-id 799.1482343048@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [GENERAL] JSON objects merge using || operator  (Mickaël Le Baillif <mickael.le.baillif@gmail.com>)
Список pgsql-general
=?UTF-8?Q?Micka=C3=ABl_Le_Baillif?= <mickael.le.baillif@gmail.com> writes:
> Do you have any reason for giving the same precedence on those operators ?
> A small survey among my colleagues and friends tends to believe that our
> human brain implicitly gives a greater priority to the '->' operator.

PG's operator precedence rules were set long before the JSON types ever
existed.  Even if we wanted to treat -> specially, we couldn't for fear
of breaking existing queries that used custom operators named that.

            regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [GENERAL] pg_restore to a port where nobody is listening?
Следующее
От: Tom DalPozzo
Дата:
Сообщение: Re: [GENERAL] error updating a tuple after promoting a standby