From: Ravi Krishna <srkrishna@vivaldi.net>
To: J. Roeleveld <joost@antarean.org>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Select .... where id not in (....) returns 0 incorrectly
Date: Mon, 04 Apr 2022 08:44:15 -0400
Message-ID: <2ddba2d73d0d54da3396ff2dad9e7d2d@vivaldi.net> (raw)
In-Reply-To: <5820573.lOV4Wx5bFT@iris>
References: <5820573.lOV4Wx5bFT@iris>
> select count(1) from snapshotlist where id not in (select id from q);
> count
> -------
> 0
> (1 row)
Doesn't this usually happen if q.id contains NULL. That is as per ANSI
standard.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: srkrishna@vivaldi.net, joost@antarean.org
Subject: Re: Select .... where id not in (....) returns 0 incorrectly
In-Reply-To: <2ddba2d73d0d54da3396ff2dad9e7d2d@vivaldi.net>
References: <5820573.lOV4Wx5bFT@iris> <2ddba2d73d0d54da3396ff2dad9e7d2d@vivaldi.net>
* 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