From: Markus Schaber <schabi@logix-tt.com>
To: Andrew Sullivan <ajs@crankycanuck.ca>
Cc: pgsql-sql@postgresql.org
Subject: Re: Alternative to serial primary key
Date: Thu, 06 Jul 2006 13:28:58 +0200
Message-ID: <44ACF3FA.5080501@logix-tt.com> (raw)
In-Reply-To: <20060706111223.GC26210@phlogiston.dyndns.org>
References: <12b7ac1e0607060316ub7b5e21i5e8e3bef2504e02c@mail.gmail.com>
<44ACEA1C.9030804@logix-tt.com>
<12b7ac1e0607060406r16d03f74mfa303eec9ab4821f@mail.gmail.com>
<44ACEFBF.7030903@logix-tt.com>
<20060706111223.GC26210@phlogiston.dyndns.org>
Hi, Andrew,
Andrew Sullivan wrote:
> 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.
Yes, risking collisions. It will work for some time, and then create a
maintainance nightmare for his successors. :-)
Markus
--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf. | Software Development GIS
Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: schabi@logix-tt.com, ajs@crankycanuck.ca
Subject: Re: Alternative to serial primary key
In-Reply-To: <44ACF3FA.5080501@logix-tt.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox