pgsql: Avoid server crash when worker registration fails at execution t - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: Avoid server crash when worker registration fails at execution t
Date
Msg-id E1ZzqGE-0007D0-KX@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Avoid server crash when worker registration fails at execution time.

The previous coding attempts to destroy the DSM in this case, but
child nodes might have stored data there and still be holding onto
pointers in this case.  So don't do that.

Also, free the reader array instead of leaking it.

Extracted from two different patch versions both by Amit Kapila.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/6c878a7553680579f287e4659592c0b874fb2377

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


pgsql-committers by date:

Previous
From: Robert Haas
Date:
Subject: pgsql: Fix typo in comment.
Next
From: Tom Lane
Date:
Subject: pgsql: Fix handling of inherited check constraints in ALTER COLUMN TYPE