Re: Transaction Snapshots and Hot Standby

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Transaction Snapshots and Hot Standby
Дата
Msg-id 48C9124E.3040804@enterprisedb.com
обсуждение исходный текст
Ответ на Re: Transaction Snapshots and Hot Standby  (Gregory Stark <stark@enterprisedb.com>)
Ответы Re: Transaction Snapshots and Hot Standby
Re: Transaction Snapshots and Hot Standby
Список pgsql-hackers
Gregory Stark wrote:
> b) vacuum on the server which cleans up a tuple the slave has in scope has to
>    block WAL reply on the slave (which I suppose defeats the purpose of having
>    a live standby for users concerned more with fail-over latency).

One problem with this, BTW, is that if there's a continuous stream of 
medium-length transaction in the slave, each new snapshot taken will 
prevent progress in the WAL replay, so the WAL replay will advance in 
"baby steps", and can fall behind indefinitely. As soon as there's a 
moment that there's no active snapshot, it can catch up, but if the 
slave is seriously busy, that might never happen.

Nevertheless, I think it's a much nicer approach.

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


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

Предыдущее
От: Csaba Nagy
Дата:
Сообщение: Re: Transaction Snapshots and Hot Standby
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Transaction Snapshots and Hot Standby