From: Tom Lane <tgl@sss.pgh.pa.us>
To: Manvendra <manvendra2525@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: NULL handling in 1D array comparison
Date: Tue, 04 May 2021 12:53:27 -0400
Message-ID: <3911709.1620147207@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+L9vQUEdb0zTsTNngbvZc+_p0qrHEGm5Wu7079bSkixGVUVtQ@mail.gmail.com>
References: <CA+L9vQUEdb0zTsTNngbvZc+_p0qrHEGm5Wu7079bSkixGVUVtQ@mail.gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, manvendra2525@gmail.com, pgsql-bugs@lists.postgresql.org
Subject: Re: NULL handling in 1D array comparison
In-Reply-To: <3911709.1620147207@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox