pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Broersma Jr <rabroersma@yahoo.com>
To: Stuart <smcg2297@frii.com>
To: pgsql-sql@postgresql.org
Subject: Re: data dependent sequences?
Date: Tue, 17 Jul 2007 07:19:05 -0700 (PDT)
Message-ID: <851996.28057.qm@web31812.mail.mud.yahoo.com> (raw)
In-Reply-To: <f7ighl$1pv$1@sea.gmane.org>


--- 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.



view thread (11+ messages)  latest in thread

Message-ID: <851996.28057.qm@web31812.mail.mud.yahoo.com>
Permalink:  ../851996.28057.qm@web31812.mail.mud.yahoo.com/
Also on:    postgresql.org/message-id/851996.28057.qm@web31812.mail.mud.yahoo.com

 · 

reply

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: rabroersma@yahoo.com, smcg2297@frii.com
  Subject: Re: data dependent sequences?
  In-Reply-To: <851996.28057.qm@web31812.mail.mud.yahoo.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