pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Fix possible infinite loop with Parallel Append.
Date: Thu, 08 Feb 2018 17:57:31 +0000
Message-ID: <E1ejqRv-0001uE-TD@gemulon.postgresql.org> (raw)

Fix possible infinite loop with Parallel Append.

When the previously-chosen plan was non-partial, all pa_finished
flags for partial plans are now set, and pa_next_plan has not yet
been set to INVALID_SUBPLAN_INDEX, the previous code could go into
an infinite loop.

Report by Rajkumar Raghuwanshi.  Patch by Amit Khandekar and me.
Review by Kyotaro Horiguchi.

Discussion: http://postgr.es/m/CAJ3gD9cf43z78qY=U=H0HvOEN341qfRO-vLpnKPSviHeWgJQ5w@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/88fdc7006018b92d6ec92c54b3819764703daaba

Modified Files
--------------
src/backend/executor/nodeAppend.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)



Message-ID: <E1ejqRv-0001uE-TD@gemulon.postgresql.org>
Permalink:  ../E1ejqRv-0001uE-TD@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ejqRv-0001uE-TD@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: rhaas@postgresql.org
  Subject: Re: pgsql: Fix possible infinite loop with Parallel Append.
  In-Reply-To: <E1ejqRv-0001uE-TD@gemulon.postgresql.org>
  References: <E1ejqRv-0001uE-TD@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