aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistscan.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2009-01-01 17:12:24 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2009-01-01 17:12:24 +0000
commit2a4cd9cd6b1d64458242733cf458900c5961a7c0 (patch)
tree4cc246bc89e6e99902978bf0100bfa6a7b8299be /src/backend/access/gist/gistscan.c
parentde1b4298d89a55af5309711d6d8c47d1012790ab (diff)
downloadpostgresql-2a4cd9cd6b1d64458242733cf458900c5961a7c0.tar.gz
postgresql-2a4cd9cd6b1d64458242733cf458900c5961a7c0.zip
Fix an oversight in my patch of a couple weeks ago that ensured a snapshot
is available during datatype input in Bind message processing. I put the PopActiveSnapshot() or equivalent just before PortalDefineQuery, which is an unsafe spot for it (in 8.3 and later) because we are carrying a plancache refcount that hasn't yet been assigned to the portal. Any error thrown there would result in leaking the refcount. It's not exactly likely that PopActiveSnapshot would throw an elog, perhaps, but it could happen. Reorder the code and add another comment warning not to do that.
Diffstat (limited to 'src/backend/access/gist/gistscan.c')
0 files changed, 0 insertions, 0 deletions