pgsql: Don't dump core when destroying an unused ParallelContext. - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: Don't dump core when destroying an unused ParallelContext.
Date
Msg-id E1ZhQ6f-0001Wu-4l@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/91d97f03ca2a9ed56b322b69dde0392db835f722

Modified Files
--------------
src/backend/access/transam/parallel.c |   17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)


pgsql-committers by date:

Previous
From: Stephen Frost
Date:
Subject: pgsql: Include policies based on ACLs needed
Next
From: Robert Haas
Date:
Subject: pgsql: Don't dump core when destroying an unused ParallelContext.