Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 75DA02E0051 for ; Wed, 18 Jun 2008 16:12:17 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 15355-01 for ; Wed, 18 Jun 2008 16:12:07 -0300 (ADT) X-Greylist: delayed 00:05:33.960172 by SQLgrey-1.7.6 Received: from tatuape.cptec.inpe.br (tatuape.cptec.inpe.br [150.163.141.147]) by developer.postgresql.org (Postfix) with ESMTP id 3BCEC2E0030 for ; Wed, 18 Jun 2008 16:12:06 -0300 (ADT) Received: from [150.163.140.113] (nhatimana.cptec.inpe.br [150.163.140.113]) by tatuape.cptec.inpe.br (Postfix) with ESMTP id 0A75A70755 for ; Wed, 18 Jun 2008 16:06:30 -0300 (BRT) Message-ID: <48595B63.4080000@cptec.inpe.br> Date: Wed, 18 Jun 2008 16:00:51 -0300 From: Roberto Garcia User-Agent: Thunderbird 2.0.0.14 (X11/20080421) MIME-Version: 1.0 CC: pgsql-admin@postgresql.org Subject: Re: Major upgrade advice References: <48594429.7040001@pinpointresearch.com> In-Reply-To: <48594429.7040001@pinpointresearch.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.581 tagged_above=0 required=5 tests=MISSING_HEADERS=1.581 X-Spam-Level: * X-Archive-Number: 200806/148 X-Sequence-Number: 29486 Just to mention one issue we had here: In 8.1 we did this to retrieve all data from a specific date: SELECT * FROM xxx WHERE LIKE '2008-05-20%' In 8.3 we had to change to: SELECT * FROM xxx WHERE >= CAST('2008-05-20' as timestamp) AND < CAST('2008-05-21' as timestamp) Regards Roberto Garcia Steve Crawford wrote: > I'm getting ready to tackle another upgrade: 7.4.6 -> 8.3.3. The > preliminaries (development/testing) look good but I'd like > suggestions/warnings/comments on: > > 1. Removing OIDs on user tables. > > I don't see any dump or restore options to remove OIDs. Am I better > off modifying the dump to alter the "SET default_with_oids = true;" > lines or going through all the user tables in advance and running > "ALTER TABLE ... SET WITHOUT OIDS"? Other options? > > 2. Alter encoding from C to utf8. > > Cheers, > Steve > > > Roberto Garcia Banco de Dados, MSc Fone: (12) 3186-8405 -- A luta contra o aquecimento global depende de cada um de nós, faça sua parte, economize recursos naturais. -- http://www.cptec.inpe.br http://www.inpe.br