Re: Transaction Snapshots and Hot Standby

Поиск
Список
Период
Сортировка
От Dimitri Fontaine
Тема Re: Transaction Snapshots and Hot Standby
Дата
Msg-id 200809111557.06241.dfontaine@hi-media.com
обсуждение исходный текст
Ответ на Re: Transaction Snapshots and Hot Standby  (Csaba Nagy <nagy@ecircle-ag.com>)
Список pgsql-hackers
Le jeudi 11 septembre 2008, Csaba Nagy a écrit :
> Well now that I think I understand what Heikki meant, I also think the
> problem is that there's no choice at all to advance, because the new
> queries will simply have the same snapshot as currently running ones as
> long as WAL reply is blocked... further blocking the WAL reply. When
> saying this I suppose that the snapshot is in fact based on the last
> recovered XID, and not on any slave-local XID. In that case once WAL
> recovery is blocked, the snapshot is stalled too, further blocking WAL
> recovery, and so on...

Well, it may be possible to instruct the WAL replay daemon to stop being
polite sometimes: when a given max_lag_delay is reached, it could take locks
and as soon as it obtains them, replay all remaining WAL.
The max_lag_delay would be a GUC allowing to set the threshold between
continuing the replay and running queries.

There could some other nice ideas without inventing yet another GUC, but this
one was eaiser to think about for me ;)
--
dim

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

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