Re: Index-only scans and non-MVCC snapshots - Mailing list pgsql-hackers

From Ryan Johnson
Subject Re: Index-only scans and non-MVCC snapshots
Date
Msg-id 53AD8211.1040108@cs.utoronto.ca
Whole thread Raw
In response to Re: Index-only scans and non-MVCC snapshots  (Andres Freund <andres@2ndquadrant.com>)
Responses Re: Index-only scans and non-MVCC snapshots  (Andres Freund <andres@2ndquadrant.com>)
List pgsql-hackers
On 27/06/2014 3:14 AM, Andres Freund wrote:
> On 2014-06-26 22:47:47 -0600, Ryan Johnson wrote:
>> Hi,
>>
>> As part of a research project, I'm trying to change Read Committed isolation
>> to use HeapTupleSatisfiesNow rather than acquiring a new snapshot at every
>> command [1]. Things appear to have gone reasonably well so far, except
>> certain queries fail with "ERROR:  non-MVCC snapshots are not supported in
>> index-only scans."
> You're aware that unless you employ additional locking you can simply
> miss individual rows or see them several times because of concurrent
> updates?
> The reason it has worked (< 9.4) for system catalogs is that updates of
> rows were only performed while objects were locked access exclusively -
> that's the reason why some places in the code use inplace updates btw...
Yes, I was aware of the need for locking. The documentation just made it 
sound that locking was already in place for non-MVCC index scans. I was 
hoping I'd missed some easy way to activate it.

Regards,
Ryan




pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: WAL replay bugs
Next
From: Andres Freund
Date:
Subject: Re: Index-only scans and non-MVCC snapshots