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 <[email protected]> Analyzed-by: Tender Wang <[email protected]> Discussion: http://postgr.es/m/[email protected] 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(-)
