agora inbox for pgsql-committers@postgresql.org
help / color / mirror / Atom feedFrom: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: pg_plan_advice: Fix another unique-semijoin bug.
Date: Fri, 17 Apr 2026 18:58:33 +0000
Message-ID: <E1wDoOe-001RoF-20@gemulon.postgresql.org> (raw)
pg_plan_advice: Fix another unique-semijoin bug.
This one occurs when an outer join appears beneath the made-unique
side of a semijoin. The issue is that join RTEs are not featured
out of sj_unique_rels entries. Fix, and add a test case.
Reported-by: Alexander Lakhin <exclusion@gmail.com>
Analyzed-by: Tender Wang <tndrwang@gmail.com>
Discussion: http://postgr.es/m/c0c63979-43c2-4424-8fe8-56949934c9d8@gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/4321dcad475bc7cbb4efe18c0b0652a0506e8348
Modified Files
--------------
contrib/pg_plan_advice/expected/semijoin.out | 32 ++++++++++++++++++++++++++++
contrib/pg_plan_advice/pgpa_planner.c | 13 +++++++++--
contrib/pg_plan_advice/sql/semijoin.sql | 9 ++++++++
3 files changed, 52 insertions(+), 2 deletions(-)
Message-ID: <E1wDoOe-001RoF-20@gemulon.postgresql.org>
Permalink: ../E1wDoOe-001RoF-20@gemulon.postgresql.org/
Also on: postgresql.org/message-id/E1wDoOe-001RoF-20@gemulon.postgresql.org
reply
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-committers@postgresql.org
Cc: rhaas@postgresql.org, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: pg_plan_advice: Fix another unique-semijoin bug.
In-Reply-To: <E1wDoOe-001RoF-20@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox