Simplifying "standby mode"

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Simplifying "standby mode"
Дата
Msg-id 20900.1154958494@sss.pgh.pa.us
обсуждение исходный текст
Ответы Re: Simplifying "standby mode"
Список pgsql-hackers
I'm in process of reviewing the restartable-recovery patch,
http://archives.postgresql.org/pgsql-patches/2006-07/msg00356.php
and I'm wondering if we really need to invent a "standby mode" boolean
to get the right behavior.  The problem I see with that flag is that
it'd be static over a run, whereas the behavior we want is dynamic.
It seems entirely likely that a slave will be started from a base backup
that isn't quite current, and will need to run through some archived WAL
segments quickly before it catches up to the master.  So during the
catchup period we'd prefer that it not do restartpoints one-for-one
with the logged checkpoints, whereas after it's caught up, that's what
we want.

I'm thinking that we could instead track the actual elapsed time since
the last restartpoint, and do a restartpoint when we encounter a
checkpoint WAL record and the time since the last restartpoint is
at least X.  I'd be inclined to just use checkpoint_timeout for X,
although perhaps there's an argument to be made for making it
separately settable.

Thoughts?
        regards, tom lane


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

Предыдущее
От: "Pavel Stehule"
Дата:
Сообщение: Re: proposal for 8.3: Simultaneous assignment for PL/pgSQL
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: pg_upgrade (was: 8.2 features status)