| От | Jorge Godoy |
|---|---|
| Тема | Re: Better alternative for Primary Key then serial?? |
| Дата | |
| Msg-id | 200712130719.54781.jgodoy@gmail.com обсуждение исходный текст |
| Ответ на | Better alternative for Primary Key then serial?? (pilzner <belisarius23@yahoo.com>) |
| Ответы |
Re: Better alternative for Primary Key then serial??
|
| Список | pgsql-general |
Em Wednesday 12 December 2007 03:42:55 pilzner escreveu: > > Does stuff like this cause any aches and pains to developers out there, or > do I just need to get in a new mindset??? Also, is there a way to be sure > the primary key is *ONLY* ever given a value by serial, and not subject to > updates??? Shouldn't the definition of a primary key be an immutable thing that is unique to the row? If you change it, then it is not immutable anymore... You can also have triggers to prevent PK updates... But I wouldn't go this route. Why are you needing updating the PKs of your data? -- Jorge Godoy <jgodoy@gmail.com>
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера