pgsql: Ensure gatherstate->nextreader is properly initialized.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Ensure gatherstate->nextreader is properly initialized.
Date: 2016-12-05 21:00:59
Message-ID: E1cE0Nf-0003zX-Va@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Ensure gatherstate->nextreader is properly initialized.

The previously code worked OK as long as a Gather node was never
rescanned, or if it was rescanned, as long as it got at least as
many workers on rescan as it had originally. But if the number
of workers ever decreased on a rescan, then it could crash.

Andreas Seltenreich

Branch
------
REL9_6_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/06fa6670fb6bf430739cb1f69d28429a0e24851f

Modified Files
--------------
src/backend/executor/nodeGather.c | 2 ++
1 file changed, 2 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2016-12-05 22:30:43 pgsql: Fix typo in new message in configure.
Previous Message Stephen Frost 2016-12-05 20:51:02 pgsql: Add support for restrictive RLS policies