Fix a many-legged critter reported by chifungfan@yahoo.com: under the

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 0147b1934f251183d3614bca011bf21205890835
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2000-08-22T04:06:22Z
Releases: 7.1.1
Fix a many-legged critter reported by chifungfan@yahoo.com: under the
right circumstances a hash join executed as a DECLARE CURSOR/FETCH
query would crash the backend.  Problem as seen in current sources was
that the hash tables were stored in a context that was a child of
TransactionCommandContext, which got zapped at completion of the FETCH
command --- but cursor cleanup executed at COMMIT expected the tables
to still be valid.  I haven't chased down the details as seen in 7.0.*
but I'm sure it's the same general problem.

Files