Re: pitr standby on slave with skewed time

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pitr standby on slave with skewed time
Дата
Msg-id 6522.1215792939@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pitr standby on slave with skewed time  (Robert Treat <xzilla@users.sourceforge.net>)
Ответы Re: pitr standby on slave with skewed time  (Simon Riggs <simon@2ndquadrant.com>)
Список pgsql-admin
Robert Treat <xzilla@users.sourceforge.net> writes:
> Was review a clients config/setup and ran across a pitr warm standby scenario
> where the master machine is set to the current time, but the slave's time is
> currently sitting back in the month of May. Outside of getting ntp setup on
> the machine, I am wondering if I need to do anything special with the
> postgresql setup, or if just setting the correct date on the machine is a
> safe enough operation that nothing else would need to be done (like re-doing
> the base backup). Any thoughts?

AFAIR you should be all right ... PITR only looks at WAL indexes, not
file timestamps.

The slave does watch the current time to decide when to do recovery
restartpoints, so if you were setting the clock *back* by a large amount
it might be wise to stop and restart the slave postmaster.  Forward
should be no problem though.

            regards, tom lane

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

Предыдущее
От: Robert Treat
Дата:
Сообщение: pitr standby on slave with skewed time
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: pitr standby on slave with skewed time