Re: time-delayed standbys

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: time-delayed standbys
Дата
Msg-id 27149.1303312506@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: time-delayed standbys  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: time-delayed standbys  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> I am a bit concerned about the reliability of this approach.  If there
> is some network lag, or some lag in processing from the master, we
> could easily get the idea that there is time skew between the machines
> when there really isn't.  And our perception of the time skew could
> easily bounce around from message to message, as the lag varies.  I
> think it would be tremendously ironic of the two machines were
> actually synchronized to the microsecond, but by trying to be clever
> about it we managed to make the lag-time accurate only to within
> several seconds.

Well, if walreceiver concludes that there is no more than a few seconds'
difference between the clocks, it'd probably be OK to take the master
timestamps at face value.  The problem comes when the skew gets large
(compared to the configured time delay, I guess).
        regards, tom lane


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Foreign table permissions and cloning
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: pgindent weirdness