Re: How to set the global OID counter? COPY WITH OIDS does

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dirk Lutzebäck <lutzeb(at)aeccom(dot)com>
Cc: Alvaro Herrera <alvherre(at)commandprompt(dot)com>, pgsql-admin(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org, pgsql-bugs(at)postgresql(dot)org, Sven Geisler <sgeisler(at)aeccom(dot)com>, pavel rabaev <pavel(at)aeccom(dot)com>
Subject: Re: How to set the global OID counter? COPY WITH OIDS does
Date: 2006-06-09 15:18:23
Message-ID: 10905.1149866303@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-bugs pgsql-general

=?ISO-8859-1?Q?Dirk_Lutzeb=E4ck?= <lutzeb(at)aeccom(dot)com> writes:
> This is not a large object. We are seeing rows with duplicate oids
> because the OID counter is not changed after the dump (exported with
> --oids) is being loaded.
> How does 8.1 prevent to allocate duplicate OIDs?

If there's a unique index on the OID column then 8.1 will not allocate
duplicate OIDs. If there's not such a unique index, you had no
guarantee of no-duplicates before 8.1 either.

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Dirk Lutzebäck 2006-06-09 15:27:47 Re: How to set the global OID counter? COPY WITH OIDS does
Previous Message Colin Freas 2006-06-09 14:49:49 Re: How to set the global OID counter? COPY WITH OIDS does

Browse pgsql-bugs by date

  From Date Subject
Next Message Dirk Lutzebäck 2006-06-09 15:27:47 Re: How to set the global OID counter? COPY WITH OIDS does
Previous Message Sebastiaan van Erk 2006-06-09 14:53:25 BUG #2475: Row limit problem

Browse pgsql-general by date

  From Date Subject
Next Message brian ally 2006-06-09 15:20:04 Re: not valid character for Unicode
Previous Message Adam Witney 2006-06-09 15:17:50 Re: not valid character for Unicode