Heikki Linnakangas <heikki.linnakan...@enterprisedb.com> wrote:
>>  The attached patch has not yet been tested, but I'll test it
>> today along with the latest committed code.
> 
> You can't use GetActiveSnapshot() for this.
 
Yeah, it didn't take much testing to find that out.  I had a naive
assumption that the GetActiveSnapshot would return whatever snapshot
was in use at the point of the call.
 
> You can have one snapshot pushed to the active snapshot stack, and
> do a DDL operation like reindex using a different snapshot. You'll
> have to check the snapshot in the HeapScanDesc.
 
Will look at that.  Do you think it makes more sense to pass in the
snapshot on all these calls and test it within predicate.c, or
condition the calls on this?
 
-Kevin

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to