recovery_target_time and standby_mode - Mailing list pgsql-hackers

From Josh Berkus
Subject recovery_target_time and standby_mode
Date
Msg-id 545AC198.6060400@agliodbs.com
Whole thread Raw
Responses Re: recovery_target_time and standby_mode  (Greg Stark <stark@mit.edu>)
List 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 by date:

Previous
From: Steve Singer
Date:
Subject: Re: tracking commit timestamps
Next
From: Andreas Karlsson
Date:
Subject: Re: B-Tree index builds, CLUSTER, and sortsupport