Re: pgsql: Fast promote mode skips checkpoint at end of recovery.

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Fast promote mode skips checkpoint at end of recovery.
Date: 2013-01-29 16:51:34
Message-ID: CA+U5nM+hnF-mEkFo_LH7AyGy-nh1Xa7WWVt6vNTzNmrqALjX=Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On 29 January 2013 16:38, Fujii Masao <masao(dot)fujii(at)gmail(dot)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!

It looks like my caution was justified about this.

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

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Devrim Gündüz 2013-01-29 16:56:46 Re: pgsql: Fast promote mode skips checkpoint at end of recovery.
Previous Message Simon Riggs 2013-01-29 16:49:51 Re: pgsql: Fast promote mode skips checkpoint at end of recovery.

Browse pgsql-hackers by date

  From Date Subject
Next Message Devrim Gündüz 2013-01-29 16:56:46 Re: pgsql: Fast promote mode skips checkpoint at end of recovery.
Previous Message Simon Riggs 2013-01-29 16:49:51 Re: pgsql: Fast promote mode skips checkpoint at end of recovery.