Re: Can't ri_KeysEqual() consider two nulls as equal? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Can't ri_KeysEqual() consider two nulls as equal?
Date
Msg-id 6214.1176920584@sss.pgh.pa.us
Whole thread Raw
In response to Re: Can't ri_KeysEqual() consider two nulls as equal?  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
List pgsql-hackers
Stephan Szabo <sszabo@megazone.bigpanda.com> writes:
> On Tue, 17 Apr 2007, Tom Lane wrote:
>> I claim that both ri_KeysEqual() and ri_OneKeyEqual() could consider
>> two nulls to be equal.

> Do you have any suggestions for alternate names? Keeping them using Equal
> seems to be dangerous since people would likely expect it to act like
> normal equality (with nulls being different).

I think Richard's suggestion of KeysUnchanged would work fine.
        regards, tom lane


pgsql-hackers by date:

Previous
From: David Fetter
Date:
Subject: Re: Can't ri_KeysEqual() consider two nulls as equal?
Next
From: Gregory Stark
Date:
Subject: Re: Background LRU Writer/free list