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

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: pgsql: Fast promote mode skips checkpoint at end of recovery.
Дата
Msg-id CA+U5nMJGJkiLH-+GH+NHvrZm=czxQjeRvZn4umODH2sL8kcMZQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pgsql: Fast promote mode skips checkpoint at end of recovery.  (Simon Riggs <simon@2ndQuadrant.com>)
Ответы Re: pgsql: Fast promote mode skips checkpoint at end of recovery.
Список 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 по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: pg_regress: Allow overriding diff options
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix grammar for subscripting or field selection from a sub-SELEC