Re: Killing OIDs

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: Steve Crawford <scrawford(at)pinpointresearch(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Killing OIDs
Date: 2009-02-11 19:40:50
Message-ID: dcc563d10902111140o7f7c1305n9a4747481bcecd58@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Feb 11, 2009 at 10:41 AM, Steve Crawford
<scrawford(at)pinpointresearch(dot)com> wrote:
> I'm about to deal with an upgrade of a server running 7.4. I have checked
> with the developers and they are not using OIDs so I'd like to remove them
> so they aren't carried forward to 8.3.
>
> My plan is to do the OID removal on 7.4. I can get a script with:
> SELECT
> 'ALTER TABLE ' || relname || ' SET WITHOUT OIDS;'
> FROM
> pg_class
> WHERE
> relkind='r' and
> relowner != 1 and
> relhasoids;
>
> Before I pull the trigger, I figured I'd post and find out if anyone sees
> any feet in the way.

Since 8.3 creates tables WITHOUT OIDS by default, I'd think just
dumping from 7.4 to 8.3 with 8.3's pg_dump should do the trick. Or am
I missing something?

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Raymond O'Donnell 2009-02-11 19:48:58 Re: Killing OIDs
Previous Message Tom Lane 2009-02-11 18:59:34 Re: Killing OIDs