From: David Rowley <drowley@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix setrefs.c code for Result Cache nodes
Date: Tue, 25 May 2021 00:51:08 +0000
Message-ID: <E1llLHo-0005OQ-Tz@gemulon.postgresql.org> (raw)
Fix setrefs.c code for Result Cache nodes
Result Cache, added in 9eacee2e6 neglected to properly adjust the plan
references in setrefs.c. This could lead to the following error during
EXPLAIN:
ERROR: cannot decompile join alias var in plan tree
Fix that.
Bug: 17030
Reported-by: Hans Buschmann
Discussion: https://postgr.es/m/17030-5844aecae42fe223@postgresql.org
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/cba5c70b956810c61b3778f7041f92fbb8065acb
Modified Files
--------------
src/backend/optimizer/plan/setrefs.c | 6 ++++++
src/test/regress/expected/join.out | 26 +++++++++++++-------------
2 files changed, 19 insertions(+), 13 deletions(-)
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: drowley@postgresql.org
Subject: Re: pgsql: Fix setrefs.c code for Result Cache nodes
In-Reply-To: <E1llLHo-0005OQ-Tz@gemulon.postgresql.org>
References: <E1llLHo-0005OQ-Tz@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