Re: Remove implicit unique index creation on SERIAL columns?
В списке pgsql-hackers по дате отправления:
| От | Joe Conway |
|---|---|
| Тема | Re: Remove implicit unique index creation on SERIAL columns? |
| Дата | |
| Msg-id | 3D5FEF53.9010005@joeconway.com обсуждение исходный текст |
| Ответ на | Remove implicit unique index creation on SERIAL columns? (Rod Taylor <rbt@zort.ca>) |
| Список | pgsql-hackers |
Rod Taylor wrote: >>>In MSSQL this >>>is gotten around by allowing the properties of the data type to be >>>altered, e.g. in MSSQL you can turn the IDENTITY property on or off >> >>Rather pointless if it can be turned off, wouldn't you say? >> >>What I would do if I wanted such a guarantee is to make insertions >>go through a view rule that prevents the serial column from being > > > In the future if we have per column privileges, we could disable insert > and update on serial columns by default for everyone but the table owner > and super-users (to accommodate dataloads). That sounds like the best way-to-go. > Till then a trigger or view will do the job for those who wish to add > them. Agreed. Joe
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера