Re: Creating a Read Only profile in 8.4

Поиск
Список
Период
Сортировка
От René Romero Benavides
Тема Re: Creating a Read Only profile in 8.4
Дата
Msg-id 4FD24ED1.10201@gmail.com
обсуждение исходный текст
Ответ на Re: Creating a Read Only profile in 8.4  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
Am 08.06.2012 08:59, schrieb Tom Lane:
"Della-Croce, Gregory" <Greg_Della-Croce@wycliffe.org> writes:
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';
Uh, that only printed the GRANT commands you needed, it didn't execute
them.
		regards, tom lane

You'll need to grant usage on the schema to your RO_User role as well.

GRANT USAGE ON SCHEMA public TO RO_User;
 
for each database you'll allow him to connect to.
--
pglearn.blogspot.mx:postgresql recipes
Twitter.You might consider to follow @sqlhotfix

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

Предыдущее
От: Josh Kupershmidt
Дата:
Сообщение: Re: How To Change Password Hash Algorithm From MD5 to SHA-256
Следующее
От: Lonni J Friedman
Дата:
Сообщение: Re: pg_basebackup blocking all queries with horrible performance