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 D80829FA147 for ; Thu, 6 Jul 2006 08:32:42 -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 97032-08 for ; Thu, 6 Jul 2006 08:32:38 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by postgresql.org (Postfix) with ESMTP id C8F849FA0EC for ; Thu, 6 Jul 2006 08:32:38 -0300 (ADT) Received: by ug-out-1314.google.com with SMTP id a2so2629557ugf for ; Thu, 06 Jul 2006 04:32:37 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=pKx0GpfU9F9j1BLA1v9ZgTa30pECLIk6pAEbb1Pmm8eNj4EXQy1t9CCswZqle2FUDhoWvgV2n3pVsvR9vjxfRsOWOwild0xgTQQ7Y6lFK8nROej63kf82wr50OK9B2qUt3gcxF2OHPx0vBy2/Ro0LrsD3nchiEbDhp1pHdfC5yQ= Received: by 10.67.89.5 with SMTP id r5mr590800ugl; Thu, 06 Jul 2006 04:32:37 -0700 (PDT) Received: by 10.67.23.14 with HTTP; Thu, 6 Jul 2006 04:32:36 -0700 (PDT) Message-ID: <12b7ac1e0607060432i5fd3aa4ap16af10b9efabb917@mail.gmail.com> Date: Thu, 6 Jul 2006 23:32:36 +1200 From: "David Clarke" To: "Andrew Sullivan" Subject: Re: Alternative to serial primary key Cc: pgsql-sql@postgresql.org In-Reply-To: <20060706111223.GC26210@phlogiston.dyndns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <12b7ac1e0607060316ub7b5e21i5e8e3bef2504e02c@mail.gmail.com> <44ACEA1C.9030804@logix-tt.com> <12b7ac1e0607060406r16d03f74mfa303eec9ab4821f@mail.gmail.com> <44ACEFBF.7030903@logix-tt.com> <20060706111223.GC26210@phlogiston.dyndns.org> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200607/60 X-Sequence-Number: 25634 On 7/6/06, Andrew Sullivan wrote: > 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. > Yes, that occurred to me as well. Frankly I believe the md5 collision generation is more of a practical issue for crypto where for my purposes the potential for two residential street addresses to generate the same md5 hash value is effectively zero. And the md5 function is a builtin which I would hope is faster than anything I could write in pgsql. Could be wrong, I have been before.