pgsql: Avoid server crash when worker registration fails at execution t

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Avoid server crash when worker registration fails at execution t
Date: 2015-11-20 18:18:14
Message-ID: E1ZzqGE-0007D0-KX@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2015-11-20 19:55:59 pgsql: Fix handling of inherited check constraints in ALTER COLUMN TYPE
Previous Message David Steele 2015-11-20 17:11:00 Re: [COMMITTERS] pgsql: Add pg_audit, an auditing extension