Re: Latest version of Hot Standby patch

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Latest version of Hot Standby patch
Дата
Msg-id 4964B183.3070209@enterprisedb.com
обсуждение исходный текст
Ответ на Re: Latest version of Hot Standby patch  (Simon Riggs <simon@2ndQuadrant.com>)
Ответы Re: Latest version of Hot Standby patch  (Simon Riggs <simon@2ndQuadrant.com>)
Re: Latest version of Hot Standby patch  (Simon Riggs <simon@2ndQuadrant.com>)
Список pgsql-hackers
Another annoyance I noticed while testing the case of a lot of 
subtransactions (overflowing the procarray cache) is that when you have 
a transaction with a lot of subtransactions open, getting the initial 
snapshot fails, and the standby doesn't open for read-only queries.

Normally, GetRunningTransactionData determines the xid of the latest 
running xid by scanning the procarray. If the subxid cache has 
overflowed, it simply gives up. Comment there suggests that it could 
call ReadNewTransactionId() instead, like it does when there's no active 
xids in proc array. I think we should do that, or something else to 
alleviate the problem.

When there's no xids in the procarray, couldn't we just use 
latestCompletedXid instead of calling ReadNewTransactionId()?

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


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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: Do we still need constraint_exclusion?
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Updates of SE-PostgreSQL 8.4devel patches (r1389)