Re: How to grant a user read-only access to a database?

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: How to grant a user read-only access to a database?
Дата
Msg-id b42b73151003030629y76ad1d7es718620617dffb28a@mail.gmail.com
обсуждение исходный текст
Ответ на Re: How to grant a user read-only access to a database?  (Thom Brown <thombrown@gmail.com>)
Ответы Re: How to grant a user read-only access to a database?  (Kevin Kempter <kevink@consistentstate.com>)
Список pgsql-general
On Tue, Mar 2, 2010 at 9:56 AM, Thom Brown <thombrown@gmail.com> wrote:
> As far as I'm aware.  It's only in the upcoming version 9.0 that you
> can do things like:
>
> GRANT SELECT ON ALL TABLES IN SCHEMA public TO readonly;
>
> Other folk on here may have some alternative suggestions though.

9.0 will also have the hot standby feature.  setting up a standby is
pretty much always a good idea and access to the standby is
automatically read only.  this would be a cheap way to get what you
want without dealing with privileges which is nice.  you are also
relatively insulated from problematic queries the user might make like
accidental unconstrained joins, full table sorts etc..

merlin

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

Предыдущее
От: Devrim GÜNDÜZ
Дата:
Сообщение: Re: FSM and VM file
Следующее
От: akp geek
Дата:
Сообщение: Re: FSM and VM file