| От | Tom Lane |
|---|---|
| Тема | Re: serial column |
| Дата | |
| Msg-id | 13140.1159140653@sss.pgh.pa.us обсуждение |
| Ответ на | Re: serial column (Bob Pawley <rjpawley@shaw.ca>) |
| Ответы |
Re: serial column
|
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера