Re: Hot standby, running xacts, subtransactions

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: Hot standby, running xacts, subtransactions
Дата
Msg-id 1235595940.16176.347.camel@ebony.2ndQuadrant
обсуждение исходный текст
Ответ на Hot standby, running xacts, subtransactions  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Ответы Re: Hot standby, running xacts, subtransactions
Список pgsql-hackers
On Wed, 2009-02-25 at 22:39 +0200, Heikki Linnakangas wrote:

> When we take the snapshot of running transactions in the master, in 
> GetRunningTransactionData(), it only includes top-level xids and those 
> subxids that are in the subxid caches. Overflowed subxids are not 
> included. Isn't that a problem? When the standby initializes the 
> recovery procs using the running xacts information, pg_subtrans doesn't 
> isn't set for the overflowed xids, because that information is not 
> included in the WAL record. If you're lucky, the information is there 
> already, but we don't generally guarantee pg_subtrans to survive crash 
> or restart.

That is exactly the reason why we don't treat an overflowed snapshot as
a valid starting point.

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



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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Synchronous replication & Hot standby patches
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Hot standby, recovery procs