pgsql: Fix the way SJE removes references from PHVs

From: Alexander Korotkov <akorotkov(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix the way SJE removes references from PHVs
Date: 2023-11-09 12:25:31
Message-ID: E1r146E-004eWn-JJ@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix the way SJE removes references from PHVs

Add missing replacement of relids in phv->phexpr. Also, remove extra
replace_relid() over phv->phrels.

Reported-by: Zuming Jiang
Bug: #18187
Discussion: https://postgr.es/m/flat/18187-831da249cbd2ff8e%40postgresql.org
Author: Richard Guo
Reviewed-by: Andrei Lepikhov

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b44a1708abe306831073cf88bb0ba6a11e68daee

Modified Files
--------------
src/backend/optimizer/plan/analyzejoins.c | 4 ++--
src/test/regress/expected/join.out | 19 +++++++++++++++++++
src/test/regress/sql/join.sql | 8 ++++++++
3 files changed, 29 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2023-11-09 14:17:40 pgsql: meson: Fix doc installation path computation
Previous Message Dean Rasheed 2023-11-09 12:11:32 pgsql: Avoid integer overflow hazard in interval_time().