Re: pgsql: Fast promote mode skips checkpoint at end of recovery. - Mailing list pgsql-committers

From Simon Riggs
Subject Re: pgsql: Fast promote mode skips checkpoint at end of recovery.
Date
Msg-id CA+U5nMJGJkiLH-+GH+NHvrZm=czxQjeRvZn4umODH2sL8kcMZQ@mail.gmail.com
Whole thread Raw
In response to Re: pgsql: Fast promote mode skips checkpoint at end of recovery.  (Simon Riggs <simon@2ndQuadrant.com>)
Responses Re: pgsql: Fast promote mode skips checkpoint at end of recovery.  (Simon Riggs <simon@2ndQuadrant.com>)
List pgsql-committers
On 29 January 2013 16:51, Simon Riggs <simon@2ndquadrant.com> wrote:
> On 29 January 2013 16:38, Fujii Masao <masao.fujii@gmail.com> wrote:
>
>> On second thought, we don't need such a complicated test case to produce
>> the problem which derives from the same cause of reported problem. The
>> procedure to produce the problem is:
>>
>> 1. Set up one master (A) and one standby (B)
>> 2. Promote (B) with fast mode after running pgbench -i -s 10
>> 3. Execute the write transaction on new master (B)
>> 4. Shut down (B) with immediate mode before end-of-recovery checkpoint
>> has been completed
>> 5. Restart (B)
>>
>> Then you can confirm that the write transaction that you executed in #3 has
>> been lost.
>
> Thanks for the test case, that was quick!

OK, I can confirm this bug.

This needs more work as is, so I'll revert and re-post.

--
 Simon Riggs                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: pg_regress: Allow overriding diff options
Next
From: Tom Lane
Date:
Subject: pgsql: Fix grammar for subscripting or field selection from a sub-SELEC