Re: When is a record NULL?

Поиск
Список
Период
Сортировка
От David E. Wheeler
Тема Re: When is a record NULL?
Дата
Msg-id 0AC123E8-CAC3-4227-860C-31DA38A5D286@kineticode.com
обсуждение исходный текст
Ответ на Re: When is a record NULL?  (Jeff Davis <pgsql@j-davis.com>)
Список pgsql-hackers
On Jul 24, 2009, at 11:37 AM, Jeff Davis wrote:

>> Hmmm ... that suggests that we may not be handling IS DISTINCT FROM
>> correctly for rowtypes.  I haven't read that part of the spec, but
>> I would've guessed that the spec wants it to be consistent with
>> IS NULL.
>
> Our behavior appears to match the standard, which covers this case in
> 8.15.General Rules.1.c.iv.

Good, because what I'm doing is comparing rows returned by two  
different cursors using IS DISTINCT FROM, and what I need the  
comparison to do is to ensure that two rows are not equivalent  
(distinct) unless all of their values are the same, column to column,  
including NULLs.

Best,

David


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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: Enable SSPI on cygwin
Следующее
От: Sam Mason
Дата:
Сообщение: Re: When is a record NULL?