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@postgresql.org
Subject: pgsql: Use the correct tuplestore read pointer in a NamedTuplestoreScan
Date: Tue, 27 Feb 2018 20:56:57 +0000
Message-ID: <E1eqmIz-00073p-13@gemulon.postgresql.org> (raw)

Use the correct tuplestore read pointer in a NamedTuplestoreScan.

Tom Kazimiers reported that transition tables don't work correctly when
they are scanned by more than one executor node.  That's because commit
18ce3a4ab allocated separate read pointers for each executor node, as it
must, but failed to make them active at the appropriate times.  Repair.

Thomas Munro

Discussion: https://postgr.es/m/20180224034748.bixarv6632vbxgeb%40dewberry.localdomain

Branch
------
master

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

Modified Files
--------------
src/backend/executor/nodeNamedtuplestorescan.c |  2 ++
src/test/regress/expected/plpgsql.out          | 22 ++++++++++++++++++++++
src/test/regress/sql/plpgsql.sql               | 26 ++++++++++++++++++++++++++
3 files changed, 50 insertions(+)



view thread (2+ messages)

Message-ID: <E1eqmIz-00073p-13@gemulon.postgresql.org>
Permalink:  ../E1eqmIz-00073p-13@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1eqmIz-00073p-13@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: Use the correct tuplestore read pointer in a NamedTuplestoreScan
  In-Reply-To: <E1eqmIz-00073p-13@gemulon.postgresql.org>
  References: <E1eqmIz-00073p-13@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