Test of value equivalency of row type, feature or bug? - Mailing list pgsql-bugs

From 孙冰
Subject Test of value equivalency of row type, feature or bug?
Date
Msg-id CA+czfDUU+SU9P73y5mg7bvsp6EQyNKoMcdSP8tQoRbDU_UF8ww@mail.gmail.com
Whole thread Raw
Responses Re: Test of value equivalency of row type, feature or bug?
List pgsql-bugs
Hi All,

Here is the query:

select t=t from (select 1, null) t;

If I manage to catch the documents, the result of the query should be null, as an equivalency comparison of null-contained row-typed values is null. Surprisingly, the query result turns out to be true.

The query is executed against pg11.

Is this behavior a feature or a bug? 

Regards.

pgsql-bugs by date:

Previous
From: Michael Paquier
Date:
Subject: Re: BUG #15552: Unexpected error in COPY to a foreign table in atransaction
Next
From: Tom Lane
Date:
Subject: Re: Test of value equivalency of row type, feature or bug?