Re: Memoize ANTI and SEMI JOIN inner

From: Richard Guo <guofenglinux(at)gmail(dot)com>
To: David Rowley <dgrowleyml(at)gmail(dot)com>
Cc: Andrei Lepikhov <lepihov(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Memoize ANTI and SEMI JOIN inner
Date: 2025-07-02 02:08:01
Message-ID: CAMbWs4_pDZYK+2RGTTjsyoRkRe+Y9rT3Y6b3XtuzcPkNTeP-zw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Apr 10, 2025 at 7:36 PM Richard Guo <guofenglinux(at)gmail(dot)com> wrote:
> On Wed, Apr 9, 2025 at 6:18 PM David Rowley <dgrowleyml(at)gmail(dot)com> wrote:
> > On Wed, 9 Apr 2025 at 18:48, Richard Guo <guofenglinux(at)gmail(dot)com> wrote:
> > > Perhaps we could spend some planner cycles proving inner_unique for
> > > anti joins, so that Memoize nodes can be considered for them?

> > Worth a try. It should be pretty easy to enable, as far as I can see.
> > It might just be a case of shuffling the cases around in the switch
> > statement in add_paths_to_joinrel().

> Right. Here is a patch for that.

Here's a rebased version with no other changes.

David, Andrei, would you like to take another look? I'm planning to
push it soon.

Thanks
Richard

Attachment Content-Type Size
v3-0001-Enable-use-of-Memoize-for-ANTI-joins.patch application/octet-stream 9.8 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message jian he 2025-07-02 02:17:09 Re: pg_restore --no-policies should not restore policies' comment
Previous Message Japin Li 2025-07-02 01:51:52 Re: Inconsistent LSN format in pg_waldump output