PersistHoldablePortal must establish the correct value for ActiveSnapshot

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

Commit: 0c400f1bbc3231ed75e11d3ab0ec7a4a9d3c8486
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2005-04-11T15:59:34Z
Releases: 8.1.0
PersistHoldablePortal must establish the correct value for ActiveSnapshot
while completing execution of the cursor's query.  Otherwise we get wrong
answers or even crashes from non-volatile functions called by the query.
Per report from andrew@supernews.

Files

PathChange+/−
src/backend/commands/portalcmds.c modified +6 −1