recovery_target_time and standby_mode

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема recovery_target_time and standby_mode
Дата
Msg-id 545AC198.6060400@agliodbs.com
обсуждение исходный текст
Ответы Re: recovery_target_time and standby_mode  (Greg Stark <stark@mit.edu>)
Список pgsql-hackers
Hackers,

Someone brought me an issue that recovery_target_time and standby_mode
weren't working as they expected.  I think that the way they work now
makes sense, but we do need to clarify it in the docs.  However, I'm
posting this to hackers first in case the way these two work together
*isn't* as intended.

Setup: two servers are restored from the same pgBarman archive.  The
master is brought to a specific point in time using
recovery_target_time.  Then they user attempts to do the same with the
new replica.

recovery.conf:

recovery_target_time = 'SOME-PAST-TIMESTAMP'
standby_mode = on
primary_conninfo = 'host=mymaster user=postgres port=5432'


How It Works Now:

When the recovery_target_time is reached, standby_mode is ignored and
the server comes up as a standalone.

How The User Wanted It To Work:

When the recovery_target_time is reached, switch to streaming
replication and stay a standby.


Note that there is a workaround for what the user wants to do.  I'm just
trying to clarify what our desired behavior is.  From there we can
either work on patches or on doc fixes.

-- 
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com



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

Предыдущее
От: Steve Singer
Дата:
Сообщение: Re: tracking commit timestamps
Следующее
От: Andreas Karlsson
Дата:
Сообщение: Re: B-Tree index builds, CLUSTER, and sortsupport