Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id D7E40B62921 for ; Wed, 1 Jun 2011 10:15:58 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 83916-05 for ; Wed, 1 Jun 2011 13:15:50 +0000 (UTC) X-Greylist: delayed 00:09:09.535579 by SQLgrey-1.7.6 Received: from locust.cns.vt.edu (locust.cns.vt.edu [198.82.169.14]) by mail.postgresql.org (Postfix) with ESMTP id 99B57B62142 for ; Wed, 1 Jun 2011 10:15:50 -0300 (ADT) Received: by locust.cns.vt.edu (Postfix, from userid 986) id 02D19118A62; Wed, 1 Jun 2011 09:06:41 -0400 (EDT) Date: Wed, 1 Jun 2011 09:06:41 -0400 From: Ray Stell To: Greg Smith Cc: pgsql-admin@postgresql.org Subject: Re: patching the OS of a 9.0.4 db with hot standby Message-ID: <20110601130640.GD22815@cns.vt.edu> References: <20110519134009.GA16689@cns.vt.edu> <4DE618D7.7000102@2ndquadrant.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4DE618D7.7000102@2ndquadrant.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201106/5 X-Sequence-Number: 37631 On Wed, Jun 01, 2011 at 06:47:51AM -0400, Greg Smith wrote: > 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 Thanks for the suggestion. It's great that the keep parm can be adjusted on the fly.