Re: SnapshotResetXmin

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: SnapshotResetXmin
Дата
Msg-id 20090116163714.GB12449@alvh.no-ip.org
обсуждение исходный текст
Ответ на SnapshotResetXmin  (Simon Riggs <simon@2ndQuadrant.com>)
Ответы Re: SnapshotResetXmin  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Simon Riggs wrote:
> 
> SnapshotResetXmin is called 3 times after each statement in
> ReadCommitted mode.
> 
> Too keen, perhaps?

It is called each time a snapshot is unregistered and each time an
active snapshot is popped.  I don't see any way to reduce the number of
calls without complicating the code a lot ... do you have any ideas?

Maybe we could check whether TransState is not TRANS_INPROGRESS and skip
it in those cases ...?

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: FWD: Re: Updated backslash consistency patch
Следующее
От: Simon Riggs
Дата:
Сообщение: GetCurrentVirtualXIDs()