| От | Tom Lane |
|---|---|
| Тема | Re: Data type to use for primary key |
| Дата | |
| Msg-id | 5059.1101280575@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Data type to use for primary key (Greg Stark <gsstark@mit.edu>) |
| Ответы |
Re: Data type to use for primary key
|
| Список | pgsql-performance |
Greg Stark <gsstark@mit.edu> writes:
> This could hurt if they ever reuse an old previously retired postal code,
> which isn't an entirely impossible case. As far as I know it hasn't happened
> yet though.
One would suppose that the guys who are in charge of this point at
Canada Post consider the postal code to be their primary key, and
are no more eager to reuse one than you are to see it reused.
Basically this comes down to "I'm going to use some externally supplied
primary key as my primary key. Do I trust the upstream DBA to know what
a primary key is?"
regards, tom lane
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера