pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix buggy recursion in flatten_rtes_walker().
Date: Mon, 13 Feb 2023 17:20:02 +0000
Message-ID: <E1pRcUj-000xg1-Fq@gemulon.postgresql.org> (raw)

Fix buggy recursion in flatten_rtes_walker().

Must save-and-restore the context we are modifying.
Oversight in commit a61b1f748.

Tender Wang

Discussion: https://postgr.es/m/CAHewXNnnNySD_YcKNuFpQDV2gxWA7_YLWqHmYVcyoOYxn8kY2A@mail.gmail.com
Discussion: https://postgr.es/m/20230212233711.GA1316@telsasoft.com

Branch
------
master

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

Modified Files
--------------
src/backend/optimizer/plan/setrefs.c | 13 +++++++++----
src/test/regress/expected/join.out   | 12 ++++++++++++
src/test/regress/sql/join.sql        |  6 ++++++
3 files changed, 27 insertions(+), 4 deletions(-)



Message-ID: <E1pRcUj-000xg1-Fq@gemulon.postgresql.org>
Permalink:  ../E1pRcUj-000xg1-Fq@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1pRcUj-000xg1-Fq@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 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: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Fix buggy recursion in flatten_rtes_walker().
  In-Reply-To: <E1pRcUj-000xg1-Fq@gemulon.postgresql.org>
  References: <E1pRcUj-000xg1-Fq@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