Re: serial column

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: serial column
Дата
Msg-id 13140.1159140653@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: serial column  (Bob Pawley <rjpawley@shaw.ca>)
Ответы Re: serial column  ("Brandon Aiken" <BAiken@winemantech.com>)
Список pgsql-general
Bob Pawley <rjpawley@shaw.ca> writes:
> I am using the numbers to identify devices.
> If a device is deleted or replaced with another type of device I want the
> numbering to still be sequential.

It sounds to me like you oughtn't be storing these numbers in the
database at all.  You just want to attach them at display time --- they
are certainly utterly meaningless as keys if they can change at any
moment.

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Gevik Babakhani
Дата:
Сообщение: Re: serial column
Следующее
От: Bob Pawley
Дата:
Сообщение: Re: serial column