Re: Read only column ?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Read only column ?
Дата
Msg-id 10891.1263693585@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Read only column ?  ("Gauthier, Dave" <dave.gauthier@intel.com>)
Ответы Re: Read only column ?  ("Gauthier, Dave" <dave.gauthier@intel.com>)
Список pgsql-general
"Gauthier, Dave" <dave.gauthier@intel.com> writes:
> Is there a way to set a column to be read only?

As of 8.4 you could revoke insert/update permissions column-by-column ...

> I have a table with several columns with values that are determined by triggers.  I want users to be able to view,
butnever edit them. 

... although, if you have triggers forcibly setting the columns, it
hardly matters what the users try to put into them, no?

            regards, tom lane

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

Предыдущее
От: "Gauthier, Dave"
Дата:
Сообщение: Read only column ?
Следующее
От: "Gauthier, Dave"
Дата:
Сообщение: Re: Read only column ?