My first revoke

From: "A B" <gentosaker(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: My first revoke
Date: 2008-09-25 15:51:37
Message-ID: dbbf25900809250851m6125cf1ahcbf981da169d3ad0@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

So I have created a role

create role my_role with NOSUPERUSER NOCREATEDB NOCREATEROLE LOGIN
ENCRYPTED PASSWORD 'secret';

Now I wish to grant only select for this role on some tables.

So I do

revoke all privileges on table X from my_role;

and i do this for all my tables (X is table name) ?

and then

grant select on table X to my_role;

for all tables?

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2008-09-25 15:55:44 Re: how can I find out the numeric directory name of each database in PostgreSQL 8.3
Previous Message Marcus Engene 2008-09-25 15:42:41 regexp_replace() [noindex] thing