Re: Prepared transactions vs novice DBAs, again

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Prepared transactions vs novice DBAs, again
Дата
Msg-id 49EF6B42.9060507@enterprisedb.com
обсуждение исходный текст
Ответ на Re: Prepared transactions vs novice DBAs, again  (Jeff Davis <pgsql@j-davis.com>)
Список pgsql-hackers
Jeff Davis wrote:
> On Wed, 2009-04-22 at 21:58 +0300, Heikki Linnakangas wrote:
>> Tom Lane wrote:
>>> Does a prepared xact still block vacuum cleanup in HEAD, or has that
>>> been fixed since 8.2?
>> It still does. A prepared xact is just like a idle-in-transaction 
>> backend as far as vacuum is concerned.
> 
> I thought idle transactions generally have released all their snapshots
> (where possible), thus allowing VACUUM to work. I would think something
> similar could work for prepared transactions.

If the prepared transaction has modified any rows (as it typically has, 
or you wouldn't bother with 2PC to begin with), its XID is on disk. We 
can't advance OldestXmin beyond that.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


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

Предыдущее
От: Jeff Davis
Дата:
Сообщение: Re: Prepared transactions vs novice DBAs, again
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Prepared transactions vs novice DBAs, again