Killing OIDs

From: Steve Crawford <scrawford(at)pinpointresearch(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Killing OIDs
Date: 2009-02-11 17:41:29
Message-ID: 49930DC9.9080206@pinpointresearch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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.

Cheers,
Steve

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2009-02-11 17:48:31 Re: Killing OIDs
Previous Message Dave Page 2009-02-11 17:03:40 Re: Pet Peeves?