Don't dump core when destroying an unused ParallelContext.

Robert Haas <rhaas@postgresql.org>

Commit: 91d97f03ca2a9ed56b322b69dde0392db835f722
Author: Robert Haas <rhaas@postgresql.org>
Date: 2015-09-30T22:42:10Z
Releases: 9.5.0
Don't dump core when destroying an unused ParallelContext.

If a transaction or subtransaction creates a ParallelContext but ends
without calling InitializeParallelDSM, the previous code would
seg fault.  Fix that.

Files

PathChange+/−
src/backend/access/transam/parallel.c modified +10 −7