Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
Thread:
Lists: pgsql-adminpgsql-bugspgsql-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

pgsql-admin by date

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

pgsql-bugs by date

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

pgsql-general by date

Next:From: brian allyDate: 2006-06-09 15:20:04
Subject: Re: not valid character for Unicode
Previous:From: Adam WitneyDate: 2006-06-09 15:17:50
Subject: Re: not valid character for Unicode

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group