Re: Killing OIDs - Mailing list pgsql-general

From Tom Lane
Subject Re: Killing OIDs
Date
Msg-id 11769.1234375292@sss.pgh.pa.us
Whole thread Raw
In response to Re: Killing OIDs  ("Joshua D. Drake" <jd@commandprompt.com>)
Responses Re: Killing OIDs  (Steve Crawford <scrawford@pinpointresearch.com>)
Re: Killing OIDs  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
"Joshua D. Drake" <jd@commandprompt.com> writes:
> On Wed, 2009-02-11 at 09:41 -0800, Steve Crawford wrote:
>> My plan is to do the OID removal on 7.4. I can get a script with:
>> SELECT
>> 'ALTER TABLE ' || relname || ' SET WITHOUT OIDS;'

> That won't drop the OID columns.

Sure it will.  I'd be a little worried about whether he shouldn't
be using quote_identifier and/or schema-qualifying the names, but
SET WITHOUT OIDS is the right command to be issuing.

            regards, tom lane

pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Killing OIDs
Next
From: rhubbell
Date:
Subject: postmaster LISTENing on UDP port 32938