Re: Better alternative for Primary Key then serial??

From: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Better alternative for Primary Key then serial??
Date: 2007-12-13 22:17:24
Message-ID: 20071213221724.GI7060@crankycanuck.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Dec 12, 2007 at 12:28:37PM -0800, pilzner wrote:
> thats what I'm familiar with" discussion, just to get a feel of why its done
> that way, if I'm doing anything wrong, or if there is an accepted way to
> lock it down.

It'd be easy to lock down with a trigger that RAISEs ERROR in case OLD.id !=
NEW.id.

A

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2007-12-13 22:17:37 Re: extend "group by" to include "empty relations" ?
Previous Message Gregory Stark 2007-12-13 22:16:39 Re: [GENERAL] Slow PITR restore