Fix bogus Asserts in calc_non_nestloop_required_outer

From: Richard Guo <guofenglinux(at)gmail(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Fix bogus Asserts in calc_non_nestloop_required_outer
Date: 2023-08-03 02:24:48
Message-ID: CAMbWs49sqbe9GBZ8sy8dSfKRNURgicR85HX8vgzcgQsPF0XY1w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

As stated in [1], all paths arriving here are parameterized by top
parents, so we should check against top_parent_relids if it exists in
the two Asserts.

Attached is a patch fixing that.

[1]
https://www.postgresql.org/message-id/CAMbWs4_UoVcCwkVMfi9TjSC%3Do5U6BRHUNZiVhrvSbDfU2HaeDA%40mail.gmail.com

Thanks
Richard

Attachment Content-Type Size
v1-0001-Fix-bogus-Asserts-in-calc_non_nestloop_required_outer.patch application/octet-stream 1.3 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Smith 2023-08-03 04:05:11 Re: [PATCH] Reuse Workers and Replication Slots during Logical Replication
Previous Message Peter Geoghegan 2023-08-03 01:32:40 Re: Use of additional index columns in rows filtering