Re: NULL handling in 1D array comparison - Mailing list pgsql-bugs

From Tom Lane
Subject Re: NULL handling in 1D array comparison
Date
Msg-id 3911709.1620147207@sss.pgh.pa.us
Whole thread Raw
In response to NULL handling in 1D array comparison  (Manvendra <manvendra2525@gmail.com>)
List pgsql-bugs
Manvendra <manvendra2525@gmail.com> writes:
> Comparison should return UNKNOWN but it's returning a true.

> postgres=# select array[null]=array[null];

Yeah, that's intentional, because we have to be able to sort arrays.
Comparison of composites behaves similarly, btw.

> SQL-99 standard use to say it should come out as UNKNOWN

We're going to politely ignore the spec on this.

            regards, tom lane



pgsql-bugs by date:

Previous
From: Manvendra
Date:
Subject: NULL handling in 1D array comparison
Next
From: Kieran McCusker
Date:
Subject: Re: ogr_fdw missing from /pub/repos/yum/13/fedora/fedora-34-x86_64/