Re: Reuse serial numbers?

Поиск
Список
Период
Сортировка
Искать
От
nobs@nobswolf.info (Emil Obermayr)
Тема
Re: Reuse serial numbers?
Дата
Msg-id
20080327100624.GB3898@nobswolf.info
Ответ на
Список
Дерево обсуждения
Reuse serial numbers? "A B" <gentosaker@gmail.com>
Re: Reuse serial numbers? "A. Kretschmer" <andreas.kretschmer@schollglas.com>
Re: Reuse serial numbers? nobs@nobswolf.info (Emil Obermayr)
Re: Reuse serial numbers? "A B" <gentosaker@gmail.com>
Re: Reuse serial numbers? nobs@nobswolf.info (Emil Obermayr)
On Thu, Mar 27, 2008 at 10:49:06AM +0100, A. Kretschmer wrote:
>
> Why do you think you need the numbers?

A typical application for low numbers (not letting them increase over
time) is the "human readabilitly" if you need them outside the DB as
labels on boxes for "real life transactions".

One solution is writing a function using a self join on the column
on a.n + 1 = b.n searching for NULL results; then returning the a.n+1.

I have this somewhere in the jungle of my source code snippets. Tell me
if you need me searching for it :)

Emil

В списке pgsql-novice по дате отправления
От: A. Kretschmer
Дата:
Сообщение: Re: Ignore unique violations?
От: A B
Дата:
Сообщение: Re: Reuse serial numbers?
FAQ