Read only access, via functions only

Поиск
Список
Период
Сортировка
От Webb Sprague
Тема Read only access, via functions only
Дата
Msg-id b11ea23c0811051546p718ae7cci26d7708343bd67eb@mail.gmail.com
обсуждение исходный текст
Ответы Re: Read only access, via functions only  (ries van Twisk <pg@rvt.dds.nl>)
Re: Read only access, via functions only  ("Joshua D. Drake" <jd@commandprompt.com>)
Список pgsql-general
Hi all

Is there a away to set up a schema such that a certain role has (1)
read only access to (2) all the tables, but (3) must use predefined
functions to use that access?

Items 1 and 2 are so that the end user doesn't stomp on the data.

I want item 3 in order to force the application programmers (PHP) not
to craft their own select statements but to go through the API

Thoughts? I have about given up, but maybe somebody can make it easy for me.

Running version 8.2.something (stupid Linux Distros)

(I can post code if necessary, I am just feeling a little lazy...)

Thanks
W

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

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Are there plans to add data compression feature to postgresql?
Следующее
От: ries van Twisk
Дата:
Сообщение: Re: Read only access, via functions only