X-Original-To: pgsql-admin-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 57D529FA5E7; Fri, 9 Jun 2006 12:27:55 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 50250-04; Fri, 9 Jun 2006 12:27:49 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- X-Greylist: from auto-whitelisted by SQLgrey- X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.aeccom.com (port-83-236-156-26.static.qsc.de [83.236.156.26]) by postgresql.org (Postfix) with ESMTP id 8A5419FA098; Fri, 9 Jun 2006 12:27:49 -0300 (ADT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.aeccom.com (Postfix) with ESMTP id C36571CA72; Fri, 9 Jun 2006 17:27:48 +0200 (CEST) Received: from mail.aeccom.com ([127.0.0.1]) by localhost (gate6.aeccom.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 10404-01-2; Fri, 9 Jun 2006 17:27:47 +0200 (CEST) Received: from [192.168.2.12] (cayambe.core.aeccom.com [192.168.2.12]) by mail.aeccom.com (Postfix) with ESMTP id 95EA71CA6A; Fri, 9 Jun 2006 17:27:47 +0200 (CEST) Message-ID: <44899373.6090801@aeccom.com> Date: Fri, 09 Jun 2006 17:27:47 +0200 From: =?ISO-8859-1?Q?Dirk_Lutzeb=E4ck?= Organization: AEC/communications GmbH User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: Tom Lane CC: Alvaro Herrera , pgsql-admin@postgresql.org, pgsql-general@postgresql.org, pgsql-bugs@postgresql.org, Sven Geisler , pavel rabaev Subject: Re: How to set the global OID counter? COPY WITH OIDS does 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> In-Reply-To: <10905.1149866303@sss.pgh.pa.us> Content-Type: multipart/alternative; boundary="------------070204050105040403000102" X-Virus-Scanned: amavisd-new at aeccom.com X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/75 X-Sequence-Number: 22037 This is a multi-part message in MIME format. --------------070204050105040403000102 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit True. Dirk Tom Lane wrote: > =?ISO-8859-1?Q?Dirk_Lutzeb=E4ck?= 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 > -- /This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, you should not copy it, re-transmit it, use it or disclose its contents, but should return it to the sender immediately and delete your copy from your system. Thank you for your cooperation./ *Dirk Lutzebäck* Tel +49.30.5362.1635 Fax .1638 CTO AEC/communications GmbH , Berlin, Germany --------------070204050105040403000102 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit True.

Dirk

Tom Lane wrote:
=?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
  

--
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, you should not copy it, re-transmit it, use it or disclose its contents, but should return it to the sender immediately and delete your copy from your system. Thank you for your cooperation.

Dirk Lutzebäck <lutzeb@aeccom.com> Tel +49.30.5362.1635 Fax .1638
CTO AEC/communications GmbH, Berlin, Germany

--------------070204050105040403000102--