Re: postgres hot-standby questions.

From: "Graeme B(dot) Bell" <grb(at)skogoglandskap(dot)no>
To: Scott Ribe <scott_ribe(at)elevated-dev(dot)com>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: postgres hot-standby questions.
Date: 2015-03-26 16:38:39
Message-ID: 2A7AD87D-7F31-47AF-992C-8B2EE6AF7CBC@skogoglandskap.no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


On 26 Mar 2015, at 17:18, Scott Ribe <scott_ribe(at)elevated-dev(dot)com> wrote:

> On Mar 26, 2015, at 10:08 AM, Graeme B. Bell <grb(at)skogoglandskap(dot)no> wrote:
>>
>> Assuming that you have your server configured with 1 or more hot standbys.
>> Are there situations where it is smart & sane to allow a controlled (slow, not emergency) shutdown to complete asynchronously without knowing if any standby got the last bits of wal?
>
> Sure.
>
> Point updates. Shut down 9.4.0. Immediately re-start 9.4.1 on the same cluster.
> OS security update, reboot server, PG shuts down and re-starts on boot.

Thanks for the examples, they should have been obvious to me.

You're right, because the master isn't going to throw away wal, it'll be kept due to wal_keep_segments, or 9.4 replication slots or whatever, and since the master *does* come directly back up in this scenario, 'eventually' will indeed arrive.

Graeme Bell

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Graeme B. Bell 2015-03-26 16:40:19 Re: postgres hot-standby questions.
Previous Message Scott Ribe 2015-03-26 16:19:39 Re: postgres hot-standby questions.