| От | Alvaro Herrera |
|---|---|
| Тема | Re: Better alternative for Primary Key then serial?? |
| Дата | |
| Msg-id | 20071212154825.GF7925@alvh.no-ip.org обсуждение исходный текст |
| Ответ на | Better alternative for Primary Key then serial?? (pilzner <belisarius23@yahoo.com>) |
| Ответы |
Re: Better alternative for Primary Key then serial??
|
| Список | pgsql-general |
pilzner wrote: > 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??? It doesn't. Just do not update the ID -- what use do you have for that anyway? If you want to prevent it, you can put a trigger to the column, but IMHO it would be a waste of your time and machine resources. -- Alvaro Herrera http://www.flickr.com/photos/alvherre/ "Vivir y dejar de vivir son soluciones imaginarias. La existencia está en otra parte" (Andre Breton)
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера