Creating a Read Only profile in 8.4

Поиск
Список
Период
Сортировка
Искать
От
Della-Croce, Gregory
Тема
Creating a Read Only profile in 8.4
Дата
Msg-id
F1CFB1E7A51CD846898BB039F441E04F095A53C641@elijah
Список
Дерево обсуждения
Creating a Read Only profile in 8.4 "Della-Croce, Gregory" <Greg_Della-Croce@wycliffe.org>
Re: Creating a Read Only profile in 8.4 Tom Lane <tgl@sss.pgh.pa.us>
Re: Creating a Read Only profile in 8.4 René Romero Benavides <ichbinrene@gmail.com>
Re: Creating a Read Only profile in 8.4 Jerry Sievers <gsievers19@comcast.net>
Re: Creating a Read Only profile in 8.4 Jan Lentfer <Jan.Lentfer@web.de>

I am new at the Postgres DBA – Admin stuff.   So when asked to create a read only profile for our database in Postgres 8.4 I did the following:

·         create role RO_User password 'xxxxxxxxxxx' NOSUPERUSER NOCREATEDB NOCREATEROLE INHERIT LOGIN;

·         select 'grant select on ' || tablename || ' to \"RO_User\"; 'from pg_tables where schemaname = 'public';

 

The commands worked fine.  But when I connected as RO_User and did a select against a simple table in the DB, I got access denied on the table.  

 

Can anyone point to my error?

 

Greg Della-Croce

 

В списке pgsql-admin по дате отправления
От: Craig Ringer
Дата:
От: Jan Lentfer
Дата:
FAQ