X-Original-To: pgsql-general-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 97F2F9FA5E6 for ; Fri, 9 Jun 2006 14:42:41 -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 67862-01 for ; Fri, 9 Jun 2006 14:42:36 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from noel.decibel.org (noel.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id EF18C9FA5DD for ; Fri, 9 Jun 2006 14:42:35 -0300 (ADT) Received: by noel.decibel.org (Postfix, from userid 1001) id 1F29E5644C; Fri, 9 Jun 2006 12:42:35 -0500 (CDT) Received: (hashcash-sendmail, from uid 1001); Fri, 9 Jun 2006 12:42:34 -0500 Date: Fri, 9 Jun 2006 12:42:34 -0500 From: "Jim C. Nasby" To: Dirk Lutzeb?ck Cc: pgsql-general@postgresql.org Subject: Re: [ADMIN] How to set the global OID counter? COPY WITH OIDS does Message-ID: <20060609174234.GB45331@pervasive.com> 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> <44899373.6090801@aeccom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44899373.6090801@aeccom.com> X-Operating-System: FreeBSD 6.0-RELEASE-p4 amd64 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.11 X-Hashcash: 1:20:060609:lutzeb@aeccom.com::kiqn5g0M04RCnHvu:00000000000000000000 0000000000000000000000003Yf2 X-Hashcash: 1:20:060609:pgsql-general@postgresql.org::mV8xYRcnyn1OC8Ep:000000000 0000000000000000000000000GPy X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/381 X-Sequence-Number: 96753 In the future, please don't send the same email to a bunch of pgsql lists; one is almost always sufficient. (In this case, -admin OR -general woulud have been best). On Fri, Jun 09, 2006 at 05:27:47PM +0200, Dirk Lutzeb?ck wrote: > 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 > -- Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com Pervasive Software http://pervasive.com work: 512-231-6117 vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461