pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Smith <greg@2ndquadrant.com>
To: Ray Stell <stellr@cns.vt.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: patching the OS of a 9.0.4 db with hot standby
Date: Wed, 01 Jun 2011 06:47:51 -0400
Message-ID: <4DE618D7.7000102@2ndquadrant.com> (raw)
In-Reply-To: <20110519134009.GA16689@cns.vt.edu>
References: <20110519134009.GA16689@cns.vt.edu>

Ray Stell wrote:
> I want to do OS patching on prod and hot standby.  What is the advised
> procedure for maintenance on the two systems?  I would think patching
> the standby should come first in case it blows something up. Oracle has
> a defer switch you can throw on prod to tell it to relax on log shipping
> to the standby.  Do we have that here?
>   

Your intuition here is reasonable--test on the standby, if things go 
wrong consider reversing the patch, with no impact on the master.  It's 
not covered in the main because that tends not to cross over into OS 
management considerations.

The main parameter you could consider tweaking in this case is 
wal_keep_segments, which will let you adjust how long the master queues 
things for the standby before it gives up.  If you really do lose the 
standby, you can run out of disk space on the master eventually if you 
haven't set this properly.

-- 
Greg Smith   2ndQuadrant US    greg@2ndQuadrant.com   Baltimore, MD
PostgreSQL Training, Services, and 24x7 Support  www.2ndQuadrant.us
"PostgreSQL 9.0 High Performance": http://www.2ndQuadrant.com/books




view thread (3+ messages)  latest in thread

Message-ID: <4DE618D7.7000102@2ndquadrant.com>
Permalink:  ../4DE618D7.7000102@2ndquadrant.com/
Also on:    postgresql.org/message-id/4DE618D7.7000102@2ndquadrant.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: greg@2ndquadrant.com, stellr@cns.vt.edu
  Subject: Re: patching the OS of a 9.0.4 db with hot standby
  In-Reply-To: <4DE618D7.7000102@2ndquadrant.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox