Test of value equivalency of row type, feature or bug?

From: 孙冰 <subi(dot)the(dot)dream(dot)walker(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Test of value equivalency of row type, feature or bug?
Date: 2018-12-20 12:31:49
Message-ID: CA+czfDUU+SU9P73y5mg7bvsp6EQyNKoMcdSP8tQoRbDU_UF8ww@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2018-12-20 14:35:00 Re: Test of value equivalency of row type, feature or bug?
Previous Message Michael Paquier 2018-12-20 00:31:40 Re: BUG #15552: Unexpected error in COPY to a foreign table in a transaction