Re: Index-only scans and non-MVCC snapshots

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Index-only scans and non-MVCC snapshots
Дата
Msg-id 20140627091459.GA18584@awork2.anarazel.de
обсуждение исходный текст
Ответ на Index-only scans and non-MVCC snapshots  (Ryan Johnson <ryan.johnson@cs.utoronto.ca>)
Ответы Re: Index-only scans and non-MVCC snapshots
Список pgsql-hackers
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...

Greetings,

Andres Freund

-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Dean Rasheed
Дата:
Сообщение: Re: RLS Design
Следующее
От: Fujii Masao
Дата:
Сообщение: Re: pg_resetxlog to clear backup start/end locations.