Re: Killing OIDs

From: Steve Crawford <scrawford(at)pinpointresearch(dot)com>
To: rod(at)iol(dot)ie
Cc: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Killing OIDs
Date: 2009-02-11 19:59:22
Message-ID: 49932E1A.6060301@pinpointresearch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Raymond O'Donnell wrote:
>
>> 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?
>>
>
> I could be wrong, but I think 8.3's pg_dump will append WITH (OIDS=TRUE)
> if it finds tables with OIDs.
>

Close. It actually does a "SET default_with_oids = true;" (or false)
prior to the CREATE TABLE statement. In any case, it does preserve the
OID setting of the source database.

Cheers,
Steve

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dennis Brakhane 2009-02-11 20:01:47 Re: createdb.exe and psql.exe without Promting Password
Previous Message Raymond O'Donnell 2009-02-11 19:48:58 Re: Killing OIDs