Re: Creating a Read Only profile in 8.4

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Della-Croce, Gregory" <Greg_Della-Croce(at)wycliffe(dot)org>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Creating a Read Only profile in 8.4
Date: 2012-06-08 13:59:14
Message-ID: 11689.1339163954@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Della-Croce, Gregory" <Greg_Della-Croce(at)wycliffe(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Kevin Grittner 2012-06-08 18:20:11 Re: Question about PITR backup
Previous Message Jerry Sievers 2012-06-08 13:22:53 Re: Creating a Read Only profile in 8.4