pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dirk Lutzebäck <lutzeb@aeccom.com>
Cc: Alvaro Herrera <alvherre@commandprompt.com>
Cc: pgsql-admin@postgresql.org, pgsql-general@postgresql.org, pgsql-bugs@postgresql.org, Sven Geisler <sgeisler@aeccom.com>
Cc: pavel rabaev <pavel@aeccom.com>
Subject: Re: How to set the global OID counter? COPY WITH OIDS does
Date: Fri, 09 Jun 2006 11:18:23 -0400
Message-ID: <10905.1149866303@sss.pgh.pa.us> (raw)
In-Reply-To: <4489887D.6080505@aeccom.com>
References: <448976E3.50209@aeccom.com>
	<20060609140015.GF19659@surnet.cl>
	<9780.1149863199@sss.pgh.pa.us>
	<4489887D.6080505@aeccom.com>

=?ISO-8859-1?Q?Dirk_Lutzeb=E4ck?= <lutzeb@aeccom.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



view thread (8+ messages)  latest in thread

Message-ID: <10905.1149866303@sss.pgh.pa.us>
Permalink:  ../10905.1149866303@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/10905.1149866303@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, lutzeb@aeccom.com, alvherre@commandprompt.com, sgeisler@aeccom.com, pavel@aeccom.com
  Subject: Re: How to set the global OID counter? COPY WITH OIDS does
  In-Reply-To: <10905.1149866303@sss.pgh.pa.us>
  References: <448976E3.50209@aeccom.com> <20060609140015.GF19659@surnet.cl> <9780.1149863199@sss.pgh.pa.us> <4489887D.6080505@aeccom.com> <10905.1149866303@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox