pgsql: Don't dump core when destroying an unused ParallelContext.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Don't dump core when destroying an unused ParallelContext.
Date: 2015-09-30 22:44:13
Message-ID: E1ZhQ6f-0001Wt-4g@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/227d57f3587d7d2a7d0792011f5ac952ba763681

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

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2015-09-30 23:29:30 pgsql: Add a Gather executor node.
Previous Message Stephen Frost 2015-09-30 11:39:39 pgsql: Include policies based on ACLs needed