Re: data dependent sequences?

From: Richard Broersma Jr <rabroersma(at)yahoo(dot)com>
To: Stuart <smcg2297(at)frii(dot)com>, pgsql-sql(at)postgresql(dot)org
Subject: Re: data dependent sequences?
Date: 2007-07-17 14:19:05
Message-ID: 851996.28057.qm@web31812.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


--- Stuart <smcg2297(at)frii(dot)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.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Andrew Sullivan 2007-07-17 15:00:46 Re: data dependent sequences?
Previous Message Stuart 2007-07-17 13:34:44 Re: data dependent sequences?