Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 2B137B62AD2 for ; Wed, 1 Jun 2011 07:48:03 -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 83284-02 for ; Wed, 1 Jun 2011 10:47:56 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186]) by mail.postgresql.org (Postfix) with ESMTP id DAD55B62AB7 for ; Wed, 1 Jun 2011 07:47:55 -0300 (ADT) Received: from [192.168.1.3] (mail.highperformancepostgresql.com [71.179.240.8]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0MWQME-1Q7SGA30he-00XCxh; Wed, 01 Jun 2011 12:47:53 +0200 Message-ID: <4DE618D7.7000102@2ndquadrant.com> Date: Wed, 01 Jun 2011 06:47:51 -0400 From: Greg Smith User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: Ray Stell CC: pgsql-admin@postgresql.org Subject: Re: patching the OS of a 9.0.4 db with hot standby References: <20110519134009.GA16689@cns.vt.edu> In-Reply-To: <20110519134009.GA16689@cns.vt.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:lpfmQ/qYo500+FhIL7LN17WhbGfMvzwUxonPFq9e7zr 7VRhubHGle8bmXjx3W59rG6YRbDSOj05u6hKOYGQz0DyhIMoO8 3S1IgHJYFq0BMpXR4LRyZ5mLcmJERQUVo3e9Vpqd0AQl9LhnTm odi+IQ2h5nwhfRZ9bM9oSgzWhndRZeN8g65LokeyNYA8I6G3QK TuMNOvXxblcaeevUwkn3/1l7k+TxDdZb8SUEVurgNY= X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201106/3 X-Sequence-Number: 37629 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