Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 0BBC9632FDD for ; Wed, 14 Jul 2010 04:57:59 -0300 (ADT) 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 28946-06 for ; Wed, 14 Jul 2010 07:57:50 +0000 (UTC) X-Greylist: delayed 00:07:04.199316 by SQLgrey-1.7.6 Received: from delta01.pnet.xcon.it (delta01.pnet.xcon.it [62.48.53.16]) by mail.postgresql.org (Postfix) with ESMTP id 584B3632228 for ; Wed, 14 Jul 2010 04:57:51 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by delta01.pnet.xcon.it (Postfix) with ESMTP id 74070180A6B9; Wed, 14 Jul 2010 09:50:44 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at delta01.pnet.xcon.it Received: from delta01.pnet.xcon.it ([127.0.0.1]) by localhost (delta01.pnet.xcon.it [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ea6tW7wMGiAx; Wed, 14 Jul 2010 09:50:42 +0200 (CEST) Received: from webmail.xcon.it (delta02.pnet.xcon.it [62.48.53.17]) (Authenticated sender: gabriele.bartolini@2ndquadrant.it) by delta01.pnet.xcon.it (Postfix) with ESMTPSA id 1C21C180D961; Wed, 14 Jul 2010 09:50:42 +0200 (CEST) MIME-Version: 1.0 Received: from eggIB-wan.comune.prato.it (eggIB-wan.comune.prato.it [193.43.108.2]) by webmail.xcon.it with HTTP/1.1 (POST); Wed, 14 Jul 2010 09:50:41 +0200 Date: Wed, 14 Jul 2010 09:50:41 +0200 From: Gabriele Bartolini To: =?UTF-8?Q?I=C3=B1igo_Martinez_Lasala?= Cc: Silvio Brandani , Subject: Re: upgrade postgres 8.1.21 to version 8.3.6 In-Reply-To: <1279054371.13317.130.camel@deimos> References: <4C3C322C.4050305@tech.sdb.it> <1279054371.13317.130.camel@deimos> Message-ID: X-Sender: Gabriele.Bartolini@2ndQuadrant.it User-Agent: [X]con Webmail/0.3.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.701 tagged_above=-10 required=5 tests=BAYES_40=-0.001, RCVD_IN_DNSWL_LOW=-0.7 X-Spam-Level: X-Archive-Number: 201007/64 X-Sequence-Number: 35083 Ciao Silvio, On Tue, 13 Jul 2010 22:52:51 +0200, Iñigo Martinez Lasala > You should script database migration process in order to make it faster. > Upgrading binaries is really simple. A yum upgrade should be enough. Yes, faster and repeatable. Something you can launch with a script that does everything from scratch. As Iñigo was pointing out, you must pay a lot of attention in setting up a test environment which helps you: * simulate the migration process (and gives you accurate measures of times) * test the applications As Iñigo said, on a typical usage pattern, the most likely set of errors you will encounter are data type checks which require casting. Therefore it becomes crucial to: * setup the test database (preferably on a different server) * setup test applications that interface with the new Postgres database I assume you are using 8.3 because of RPM availability, isn't it? Otherwise, you should think of 8.4. Ciao, Gabriele -- Gabriele Bartolini - 2ndQuadrant Italia PostgreSQL Training, Services and Support Gabriele.Bartolini@2ndQuadrant.it - www.2ndQuadrant.it