]> granicus.if.org Git - postgresql/commit
Avoid server crash when worker registration fails at execution time.
authorRobert Haas <rhaas@postgresql.org>
Fri, 20 Nov 2015 18:03:39 +0000 (13:03 -0500)
committerRobert Haas <rhaas@postgresql.org>
Fri, 20 Nov 2015 18:03:39 +0000 (13:03 -0500)
commit6c878a7553680579f287e4659592c0b874fb2377
treeac042140a9cfc9f476ae1f1c4d84e626dc016ee4
parent74d0d5f3ebed9d817ec353fb17eedb343a0ab5b4
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.
src/backend/executor/nodeGather.c