Re: data dependent sequences?

Поиск
Список
Период
Сортировка
От Richard Broersma Jr
Тема Re: data dependent sequences?
Дата
Msg-id 851996.28057.qm@web31812.mail.mud.yahoo.com
обсуждение исходный текст
Ответ на Re: data dependent sequences?  ("Stuart" <smcg2297@frii.com>)
Список 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 по дате отправления:

Предыдущее
От: "Stuart"
Дата:
Сообщение: Re: data dependent sequences?
Следующее
От: Andrew Sullivan
Дата:
Сообщение: Re: data dependent sequences?