Re: Anti join confusion - Mailing list pgsql-hackers

From Richard Guo
Subject Re: Anti join confusion
Date
Msg-id CAMbWs48cKN5u2Q6iRCb=bUz6u_2tKGVf=czQRtNVw40-07PwCw@mail.gmail.com
Whole thread Raw
In response to Re: Anti join confusion  (Tender Wang <tndrwang@gmail.com>)
Responses Re: Anti join confusion
List pgsql-hackers
On Wed, Feb 26, 2025 at 7:09 PM Tender Wang <tndrwang@gmail.com> wrote:
> Recently, I found Greenplum implement pull-up NOT IN subquery. They have the below comments in their codes:
>
> We normalize NOT subqueries using the following axioms:
> *
> * val NOT IN (subq) =>  val <> ALL (subq)
>
> Richard, do you have an impression about this?

I vaguely recall that Greenplum converts NOT IN to some form of join
in certain cases, but I can't remember the details.

Thanks
Richard



pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Accidental assignment instead of compare in GetOperatorFromCompareType?
Next
From: Jakub Wartak
Date:
Subject: Re: doc: Mention clock synchronization recommendation for hot_standby_feedback