Re: Interesting glitch in autovacuum

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: Interesting glitch in autovacuum
Дата
Msg-id 1221076463.3913.748.camel@ebony.2ndQuadrant
обсуждение исходный текст
Ответ на Interesting glitch in autovacuum  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Interesting glitch in autovacuum
Список pgsql-hackers
On Wed, 2008-09-10 at 11:52 -0400, Tom Lane wrote:

> I'm thinking that maybe an appropriate fix is to insert a
> GetTransactionSnapshot call at the beginning of InitPostgres'
> transaction, thus ensuring that every backend has some vaguely sane
> value for RecentGlobalXmin before it tries to do any database access.

Can't we just set RecentGlobalXmin without getting a Snapshot? There's
no need for a snapshot at that point is there? Just lock ProcArrayLock,
read GlobalXmin, drop lock.

-- Simon Riggs           www.2ndQuadrant.comPostgreSQL Training, Services and Support



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

Предыдущее
От: Zdenek Kotala
Дата:
Сообщение: Re: New FSM patch
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Interesting glitch in autovacuum