pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Ensure gatherstate->nextreader is properly initialized.
2+ messages / 1 participants
[nested] [flat]

* pgsql: Ensure gatherstate->nextreader is properly initialized.
@ 2016-12-05 21:00  Robert Haas <rhaas@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Robert Haas @ 2016-12-05 21:00 UTC (permalink / raw)
  To: 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
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/53c7cff7200b6689b102f2e4a40650cf652dae39

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


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Ensure gatherstate->nextreader is properly initialized.
@ 2016-12-05 21:00  Robert Haas <rhaas@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Robert Haas @ 2016-12-05 21:00 UTC (permalink / raw)
  To: 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(+)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2016-12-05 21:00 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-12-05 21:00 pgsql: Ensure gatherstate->nextreader is properly initialized. Robert Haas <rhaas@postgresql.org>
2016-12-05 21:00 pgsql: Ensure gatherstate->nextreader is properly initialized. Robert Haas <rhaas@postgresql.org>

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