Re: recovery_target_time and standby_mode

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, Greg Stark <stark(at)mit(dot)edu>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: recovery_target_time and standby_mode
Date: 2014-11-13 17:38:12
Message-ID: CA+TgmoZg=cXiUm2sL8kvf8uXwh+DMy5DirD=mp7+Fp9kBfoqqQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Nov 13, 2014 at 2:45 AM, Josh Berkus <josh(at)agliodbs(dot)com> wrote:
> On 11/12/2014 10:06 AM, Robert Haas wrote:
>>> hat *appears* to be happening is that the pause_at_recovery_target,
>>> > followed by the restart, on the replica causes it to advance one commit
>>> > on timeline 1. But *not all the time*; this doesn't happen in my
>>> > pgbench-based tests.
>>> >
>>> > There's a workaround for the user (they just restore the replica to 5
>>> > minutes earlier), but I'm thinking this is a minor bug somewhere.
>> I'm not sure what's going on here, but keep in mind that when you
>> restart the replica, it's going to back up to the most recent
>> restartpoint and begin replication from there, not from the point it
>> was at when you shut down.
>
> Except that in the problem case, it appears to be going *forwards*.
> What would cause that?

Unfortunately, I have no idea.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2014-11-13 17:39:39 Re: controlling psql's use of the pager a bit more
Previous Message Robert Haas 2014-11-13 17:36:29 Re: Doing better at HINTing an appropriate column within errorMissingColumn()