Re: data dependent sequences? - Mailing list pgsql-sql

From Richard Broersma Jr
Subject Re: data dependent sequences?
Date
Msg-id 851996.28057.qm@web31812.mail.mud.yahoo.com
Whole thread Raw
In response to Re: data dependent sequences?  ("Stuart" <smcg2297@frii.com>)
List pgsql-sql
--- Stuart <smcg2297@frii.com> wrote:
> > you will need to use pre insert trigger since you cannot use column
> > references in default expression.
> > 
> > you could use this same trigger to either:
> > - create sequences as needed and apply the right one
> > - with locking, lookup for last id of typ
> > - with locking, keep another table of typ and nextval

here is supplementary information of gap-less sequences:

http://www.varlena.com/GeneralBits/130.php

Regards,
Richard Broersma Jr.


pgsql-sql by date:

Previous
From: "Stuart"
Date:
Subject: Re: data dependent sequences?
Next
From: Andrew Sullivan
Date:
Subject: Re: data dependent sequences?