Re: PITR potentially broken in 9.2

From: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>, Noah Misch <noah(at)leadboat(dot)com>, Pg Bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: PITR potentially broken in 9.2
Date: 2012-12-01 21:46:09
Message-ID: CAMkU=1z+Tn46kftM7ptYM8-iqBvH6CrpTv5g=CCHO2zxOXuzvw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

On Sat, Dec 1, 2012 at 12:47 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Jeff Janes <jeff(dot)janes(at)gmail(dot)com> writes:
>> On Wed, Nov 28, 2012 at 7:51 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>>> Is this related at all to the problem discussed over at
>>> http://archives.postgresql.org/pgsql-general/2012-11/msg00709.php
>>> ? The conclusion-so-far in that thread seems to be that an error
>>> ought to be thrown for recovery_target_time earlier than the
>>> backup stop time, but one is not getting thrown.
>
>> It is not directly related. That thread was about 9.1.6.
>
>> In the newly fixed 9_2_STABLE, that problem still shows up the same as
>> it does in 9.1.6.
>
>> (In 9.2.1, recovery sometimes blows up before that particular problem
>> could be detected, which is what lead me here in the first place--that
>> is the extent of the relationship AFAIK)
>
>> To see this one, follow the instructions in my previous email, but set
>> recovery_target_time to a time just after the end of the
>> pg_start_backup checkpoint, rather than just before it, and turn on
>> hot_standby
>
> I tried to reproduce this as per your directions, and see no problem in
> HEAD. Recovery advances to the specified stop time, hot standby mode
> wakes up,

Hot standby should only wake up once recovery has proceeded beyond the
pg_stop_backup() point.

If the specified stop point is after pg_start_backup() finishes, but
before pg_stop_backup(), then hot standby should not start up (and
with the newest HEAD, in my hands, it does not). Are you sure you set
the stop time to just after pg_start_backup, not to just after
pg_stop_backup?

Cheers,

Jeff

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2012-12-01 21:56:44 Re: PITR potentially broken in 9.2
Previous Message Tom Lane 2012-12-01 21:06:41 Re: extension installation faillure using VPATH and MODULEDIR

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2012-12-01 21:56:44 Re: PITR potentially broken in 9.2
Previous Message Phil Sorber 2012-12-01 20:56:11 Re: [WIP] pg_ping utility