reaper should restart archiver even on standby

From: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: reaper should restart archiver even on standby
Date: 2015-06-08 19:50:40
Message-ID: CAHGQGwE+FOERXztu0J=XmLt2oexbHw9ZxQ2+n1mjsKWVKyN1Mw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

When the archiver exits, currently reaper() restarts it only while
the postmaster state is PM_RUN. This is OK in 9.4 or before because
the archiver could be running on that state. But in 9.5, we can set
archive_mode to "always" and start the archiver even on the standby.
So I think that reaper() should restart the archiver even when
the postmaster state is PM_RECOVERY or PM_HOT_STANDBY with
some conditions. Patch attached.

Regards,

--
Fujii Masao

Attachment Content-Type Size
restart_archiver_on_standby_v1.patch text/x-diff 679 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Joshua D. Drake 2015-06-08 19:56:03 Re: [CORE] back-branch multixact fixes & 9.5 alpha/beta: schedule
Previous Message Alvaro Herrera 2015-06-08 19:48:23 Re: [CORE] back-branch multixact fixes & 9.5 alpha/beta: schedule