X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id D844752956; Wed, 4 May 2005 20:27:45 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 35747-06; Wed, 4 May 2005 23:27:37 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id D40A054A16; Wed, 4 May 2005 20:27:35 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j44NRcJ5001421; Wed, 4 May 2005 19:27:38 -0400 (EDT) To: "Joshua D. Drake" Cc: =?ISO-8859-1?Q?Ragnar_Hafsta=F0?= , Jeff Eckermann , Zlatko Matic , pgsql-general@postgresql.org, pgsql-interfaces@postgresql.org Subject: Re: [INTERFACES] calculated identity field in views, In-reply-to: <4279542B.50104@commandprompt.com> References: <20050504160124.8942.qmail@web20822.mail.yahoo.com> <1115246450.17038.5.camel@localhost.localdomain> <4279542B.50104@commandprompt.com> Comments: In-reply-to "Joshua D. Drake" message dated "Wed, 04 May 2005 16:00:59 -0700" Date: Wed, 04 May 2005 19:27:38 -0400 Message-ID: <1420.1115249258@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200505/213 X-Sequence-Number: 77561 "Joshua D. Drake" writes: > Ragnar Hafstaš wrote: >> On Wed, 2005-05-04 at 09:01 -0700, Jeff Eckermann wrote: >>> If I understand right, oids are globally >>> unique within your database. >> >> I am affraid not > oids are globally unique within the catalog. ... until the OID generator wraps around, and then they aren't so unique anymore. You can enforce uniqueness within a particular table by creating a unique index on the OID column, but that's about as much as you can guarantee. regards, tom lane