Re: Proposition to use '==' as synonym for 'IS NOT DISTINCT FROM'

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Proposition to use '==' as synonym for 'IS NOT DISTINCT FROM'
Дата
Msg-id 4E861360-B0C2-4AFC-B102-6C7674308FC9@anarazel.de
обсуждение исходный текст
Ответ на Re: Proposition to use '==' as synonym for 'IS NOT DISTINCT FROM'  (Vik Fearing <vik.fearing@2ndquadrant.com>)
Список pgsql-hackers
Hi,

On October 26, 2019 4:09:29 PM PDT, Vik Fearing <vik.fearing@2ndquadrant.com> wrote:
>On 26/10/2019 17:41, Eugen Konkov wrote:
>> Hi.
>>
>> I  have  noticed that it would be cool to use '==' in place of 'IS
>NOT
>> DISTICT FROM'
>>
>> What do you think about this crazy idea?
>
>
>I think this is a terrible idea.  The only reason to do this would be
>to
>index it, but indexes (btree at least) expect STRICT operators, which
>this would not be.

It sounds like what's being suggested is just some abbreviated formulation of IS NOT DISTINCT. If implement that way,
ratherthan manually adding non strict operators, I don't think there would be an indexing issue. 

Andres
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.



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

Предыдущее
От: Vik Fearing
Дата:
Сообщение: Re: Proposition to use '==' as synonym for 'IS NOT DISTINCT FROM'
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Proposal: Add more compile-time asserts to expose inconsistencies.