Re: NULL safe equality operator - Mailing list pgsql-hackers

From Tom Lane
Subject Re: NULL safe equality operator
Date
Msg-id 22284.1132932221@sss.pgh.pa.us
Whole thread Raw
In response to Re: NULL safe equality operator  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
List pgsql-hackers
Christopher Kings-Lynne <chriskl@familyhealth.com.au> writes:
>> test=# select null_safe_cmp (NULL,NULL);
>> ERROR:  could not determine anyarray/anyelement type because input  has 
>> type "unknown"
>> Same casting problem due to anyelement, of course.

> Yes - I wonder what the trick to getting around that is?

You might be able to hack it by creating a second function defined asnull_safe_cmp(unknown,unknown)
Pretty grotty of course, and I'm not sure that it comes up in the
real world as opposed to test cases.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: gprof SELECT COUNT(*) results
Next
From: Tom Lane
Date:
Subject: Re: NULL safe equality operator