Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 0E6271337BD6 for ; Fri, 4 Mar 2011 10:37:56 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 63801-07 for ; Fri, 4 Mar 2011 14:37:49 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mh3.mail.rice.edu (mh3.mail.rice.edu [128.42.199.10]) by mail.postgresql.org (Postfix) with ESMTP id 83DC91337BD7 for ; Fri, 4 Mar 2011 10:37:48 -0400 (AST) Received: from mh3.mail.rice.edu (localhost.localdomain [127.0.0.1]) by mh3.mail.rice.edu (Postfix) with ESMTP id 79CD128F7F0; Fri, 4 Mar 2011 08:37:48 -0600 (CST) X-Virus-Scanned: by amavis-2.6.4 at mh3.mail.rice.edu, auth channel Received: from mh3.mail.rice.edu ([127.0.0.1]) by mh3.mail.rice.edu (mh3.mail.rice.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id CJLNkDWgLF3O; Fri, 4 Mar 2011 08:37:48 -0600 (CST) X-SMTP-Auth: no X-SMTP-Auth: no X-SMTP-Auth: no X-SMTP-Auth: no Received: from aart.is.rice.edu (aart.is.rice.edu [168.7.56.48]) by mh3.mail.rice.edu (Postfix) with ESMTP id 47C8D28F7EB; Fri, 4 Mar 2011 08:37:48 -0600 (CST) Received: by aart.is.rice.edu (Postfix, from userid 18612) id 8ED602D5A6; Fri, 4 Mar 2011 08:37:47 -0600 (CST) Date: Fri, 4 Mar 2011 08:37:46 -0600 From: Kenneth Marshall To: Uwe Schroeder Cc: pgsql-admin@postgresql.org, gnanam@zoniac.com, 'Devrim G?ND?Z' Subject: Re: How to upgrade PostgreSQL minor releases without a dump/restore? Message-ID: <20110304143746.GE8169@aart.is.rice.edu> References: <003701cbd7e5$b8eb1d90$2ac158b0$@com> <1298966686.2128.16.camel@lenovo01-laptop03.gunduz.org> <004501cbd7ef$4c02d240$e40876c0$@com> <201103031943.46705.uwe@bunspace.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201103031943.46705.uwe@bunspace.com> User-Agent: Mutt/1.5.16 (2007-06-09) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-4.21 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201103/49 X-Sequence-Number: 36921 On Thu, Mar 03, 2011 at 07:43:46PM -0800, Uwe Schroeder wrote: > > > > ? Did you read the paragraph above? > > > > > > Install latest version, and restart postmaster. > > > > Installing of latest version as-is will keep overwriting the existing > > installed directories/files/binaries but not the "/usr/local/pgsql/data/" > > directory right? Since this is our production server database, am just > > clarifying this question that came to my mind, before upgrading. > > For sake of safety, I'd always make a backup of the data directory. You don't > need to dump/restore. Just copy the files someplace else and then do the > update. In case something goes wrong you can always go back to your old > version and just copy the backup to the data directory. > > That's how I do upgrades. Never needed the backup, but better to have one. > > Uwe > The "Just copy the files someplace else" can take a long, long time for a large database and you need to have the database off-line for the copy to be correct. Not really an option in many environments. Cheers, Ken