pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix the way SJE removes references from PHVs
Date: Thu, 09 Nov 2023 12:25:31 +0000
Message-ID: <E1r146E-004eWn-JJ@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1r146E-004eWn-JJ@gemulon.postgresql.org>
Permalink:  ../E1r146E-004eWn-JJ@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1r146E-004eWn-JJ@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: akorotkov@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Fix the way SJE removes references from PHVs
  In-Reply-To: <E1r146E-004eWn-JJ@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 DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox