X-Original-To: pgsql-sql-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 6471D9FA43C for ; Thu, 6 Jul 2006 08:12:34 -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 16600-01 for ; Thu, 6 Jul 2006 08:12:30 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from main2.mycybernet.net (main2.mycybernet.net [209.222.63.140]) by postgresql.org (Postfix) with ESMTP id 5E83A9FA147 for ; Thu, 6 Jul 2006 08:12:30 -0300 (ADT) Received: from 227-54-222-209.mycybernet.net ([209.222.54.227] helo=phlogiston.dydns.org) by main2.mycybernet.net with esmtp (Exim 4.62) (envelope-from ) id 1FyRu0-0004Q0-FQ for pgsql-sql@postgresql.org; Thu, 06 Jul 2006 07:20:12 -0400 Received: by phlogiston.dydns.org (Postfix, from userid 1000) id B84D84051; Thu, 6 Jul 2006 07:12:23 -0400 (EDT) Date: Thu, 6 Jul 2006 07:12:23 -0400 From: Andrew Sullivan To: pgsql-sql@postgresql.org Subject: Re: Alternative to serial primary key Message-ID: <20060706111223.GC26210@phlogiston.dyndns.org> References: <12b7ac1e0607060316ub7b5e21i5e8e3bef2504e02c@mail.gmail.com> <44ACEA1C.9030804@logix-tt.com> <12b7ac1e0607060406r16d03f74mfa303eec9ab4821f@mail.gmail.com> <44ACEFBF.7030903@logix-tt.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44ACEFBF.7030903@logix-tt.com> User-Agent: Mutt/1.5.9i X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200607/58 X-Sequence-Number: 25632 On Thu, Jul 06, 2006 at 01:10:55PM +0200, Markus Schaber wrote: > Then you'll have to use the re-check approach, like: That sort of undermines the value of the calculated primary key, though, doesn't it? He'd need the unique index for FK references, which was the point, I thought. A -- Andrew Sullivan | ajs@crankycanuck.ca The whole tendency of modern prose is away from concreteness. --George Orwell