Re: Remove implicit unique index creation on SERIAL

Поиск
Список
Период
Сортировка
От Rod Taylor
Тема Re: Remove implicit unique index creation on SERIAL
Дата
Msg-id 1029689856.37296.182.camel@jester
обсуждение исходный текст
Ответ на Re: Remove implicit unique index creation on SERIAL columns?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> > 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).

Till then a trigger or view will do the job for those who wish to add
them.



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Open 7.3 items
Следующее
От: Gavin Sherry
Дата:
Сообщение: Re: [PATCHES] Better handling of parse errors