Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 1DE85632521 for ; Tue, 15 Jun 2010 03:37:41 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 71486-03 for ; Tue, 15 Jun 2010 06:37:33 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from rs47.luxsci.com (rs47.luxsci.com [65.61.166.88]) by mail.postgresql.org (Postfix) with ESMTP id 5DFF2632256 for ; Tue, 15 Jun 2010 03:37:32 -0300 (ADT) Received: from gnanam (ABTS-TN-Static-186.58.165.122.airtelbroadband.in [122.165.58.186] (may be forged)) (authenticated bits=0) by rs47.luxsci.com (8.13.1/8.13.7) with ESMTP id o5F6bQ59028985; Tue, 15 Jun 2010 01:37:28 -0500 Reply-To: From: "Gnanakumar" To: "'Kevin Grittner'" , Cc: References: <4C1092AF0200002500032124@gw.wicourts.gov> <004901cb089e$7a366030$6ea32090$@com> <4C10A65F020000250003213A@gw.wicourts.gov> In-Reply-To: <4C10A65F020000250003213A@gw.wicourts.gov> Subject: Re: Fatal Error during PITR Recovery Date: Tue, 15 Jun 2010 12:07:26 +0530 Organization: Zoniac Software Private Limited Message-ID: <011401cb0c55$39cfe330$ad6fa990$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcsIo1ijgjGVbriCRaSy5afDEJ3c4QDsazEQ Content-Language: en-us X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.6 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7 X-Spam-Level: X-Archive-Number: 201006/105 X-Sequence-Number: 34883 Hi Kevin, Thanks for sharing on your way of upgrading. Regards, Gnanam -----Original Message----- From: Kevin Grittner [mailto:Kevin.Grittner@wicourts.gov] Sent: Thursday, June 10, 2010 7:16 PM To: tgl@sss.pgh.pa.us; gnanam@zoniac.com Cc: pgsql-admin@postgresql.org Subject: RE: [ADMIN] Fatal Error during PITR Recovery Gnanakumar" wrote: > what is the correct method of upgrading/installing to 8.2.17? > > Let me make the question/idea, which I'm thinking in my minding of > upgrading, clear here: > > 1. Rename '/usr/local/pgsql/data' to '/usr/local/pgsql/data.old' > 2. Install v8.2.17 to its default from the source (Because > installing from source is comfortable for me) > 3. After installation, just remove '/usr/local/pgsql/data' and > rename '/usr/local/pgsql/data.old' to '/usr/local/pgsql/data' > 4. Start server. It should have become v8.2.17 There are so many ways to do this, particularly since you are comfortable installing from source, that I'll just tell you how we do it and let you adjust as needed for your shop. 1. We build from source with a version-specific prefix (for example: /usr/local/pgsql-8.4.4). We always point to a particular executable in our service scripts, but create a symbolic link to the one we want as the default client; the bin directory of that symlink is put onto our path. We do like to initdb a test cluster and confirm that our custom functions all got created properly and seem to be working before moving on. 2. Once the new minor version is installed, we point the service script to it for the database we're about to upgrade. 3. We always make sure we're backed up, but since we use PITR techniques with archiving always active, that's no big deal. 4. We do a service stop followed by a service start (*not* a restart!) to start using the new version. 5. We do any post-upgrade steps, like any needed REINDEX. I'm not sure why you needed that rename dodge that you mentioned, but you know your environment better than I do. -Kevin