From: Roberto Garcia <roberto.garcia@cptec.inpe.br>
Cc: pgsql-admin@postgresql.org
Subject: Re: Major upgrade advice
Date: Wed, 18 Jun 2008 16:00:51 -0300
Message-ID: <48595B63.4080000@cptec.inpe.br> (raw)
In-Reply-To: <48594429.7040001@pinpointresearch.com>
References: <48594429.7040001@pinpointresearch.com>
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 <timestamp_column> LIKE '2008-05-20%'
In 8.3 we had to change to:
SELECT * FROM xxx
WHERE <timestamp_column> >= CAST('2008-05-20' as timestamp) AND
<timestamp_column> < 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.brhttp://www.inpe.br
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: roberto.garcia@cptec.inpe.br
Subject: Re: Major upgrade advice
In-Reply-To: <48595B63.4080000@cptec.inpe.br>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox