Re: BUG #14717: NULL=NULL is true for composite types

From: Paolo Guagliardo <paolo(dot)guagliardo(at)ed(dot)ac(dot)uk>
To: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #14717: NULL=NULL is true for composite types
Date: 2017-06-26 15:53:58
Message-ID: 08629cd7-ba28-4369-961c-a889797139c9@ed.ac.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

I'm really sorry, David. For some reason I overlooked that part. Thanks.

⁣Sent from BlueMail ​On Jun 26, 2017, at 4:49 PM, "David G. Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> wrote:

On Mon, Jun 26, 2017 at 8:29 AM, <paolo(dot)guagliardo(at)ed(dot)ac(dot)uk> wrote:

The following bug has been logged on the website:

Bug reference:      14717
Logged by:          Paolo Guagliardo
Email address:      paolo(dot)guagliardo(at)ed(dot)ac(dot)uk
PostgreSQL version: 9.6.3
Operating system:   Scientific Linux release 7.3 (Nitrogen)
Description:

​[...]​ 

SELECT (1,NULL)::pair = (1,NULL)::pair ;

 ?column?
----------
 t
(1 row)

while the answer should be NULL (unknown) as before.

Working as documented.
https://www.postgresql.org/docs/9.6/static/functions-comparisons.html

See the last two sections for why (or at least how...) "anonymous row constructor" and "named record" are treated differently.
David J.

On Jun 26, 2017, 4:49 PM, at 4:49 PM, "David G. Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> wrote:
>On Mon, Jun 26, 2017 at 8:29 AM, <paolo(dot)guagliardo(at)ed(dot)ac(dot)uk> wrote:
>
>> The following bug has been logged on the website:
>>
>> Bug reference: 14717
>> Logged by: Paolo Guagliardo
>> Email address: paolo(dot)guagliardo(at)ed(dot)ac(dot)uk
>> PostgreSQL version: 9.6.3
>> Operating system: Scientific Linux release 7.3 (Nitrogen)
>> Description:
>>
>> ​[...]
>​
>
>
>> SELECT (1,NULL)::pair = (1,NULL)::pair ;
>>
>> ?column?
>> ----------
>> t
>> (1 row)
>>
>> while the answer should be NULL (unknown) as before.
>>
>
>Working as documented.
>
>https://www.postgresql.org/docs/9.6/static/functions-comparisons.html
>
>See the last two sections for why (or at least how...) "anonymous row
>constructor" and "named record" are treated differently.
>
>David J.

Attachment Content-Type Size
unknown_filename text/plain 109 bytes

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Caio Parolin 2017-06-26 16:30:27 RES: Problems installation
Previous Message David G. Johnston 2017-06-26 15:51:04 Re: Problems installation