pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joshua D. Drake <jd@commandprompt.com>
To: Steve Crawford <scrawford@pinpointresearch.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Major upgrade advice
Date: Wed, 18 Jun 2008 10:28:33 -0700
Message-ID: <1213810113.8601.197.camel@jd-laptop> (raw)
In-Reply-To: <48594429.7040001@pinpointresearch.com>
References: <48594429.7040001@pinpointresearch.com>



On Wed, 2008-06-18 at 10:21 -0700, 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?

If the table has oids, pg_dump is going to grab them and restore them as
such. If you are assured that you don't need OIDs I would drop the oid
columns from the user tables before the upgrade.

> 
> 2. Alter encoding from C to utf8.

Very good chance the dump will not load without going through a cleanup
with iconv.

Joshua D. Drake





view thread (13+ messages)  latest in thread

Message-ID: <1213810113.8601.197.camel@jd-laptop>
Permalink:  ../1213810113.8601.197.camel@jd-laptop/
Also on:    postgresql.org/message-id/1213810113.8601.197.camel@jd-laptop

 · 

reply

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: jd@commandprompt.com, scrawford@pinpointresearch.com
  Subject: Re: Major upgrade advice
  In-Reply-To: <1213810113.8601.197.camel@jd-laptop>

* 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