Don't dump core when destroying an unused ParallelContext.

Robert Haas <rhaas@postgresql.org>

Commit: 227d57f3587d7d2a7d0792011f5ac952ba763681
Author: Robert Haas <rhaas@postgresql.org>
Date: 2015-09-30T22:36:31Z
Releases: 9.6.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