From: | Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com> |
---|---|
To: | Otandeka Simon Peter <sotandeka(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Granting rights |
Date: | 2009-10-11 18:32:26 |
Message-ID: | dcc563d10910111132o8cbc91fhbd192d408a196c85@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Sun, Oct 11, 2009 at 11:05 AM, Otandeka Simon Peter
<sotandeka(at)gmail(dot)com> wrote:
>
> Hi,
>
> Is it possible to give a user rights(update,select,insert) rights on a
> database and not necessary doing that for one relation at a time?
Rights don't work that way in pgsql. Each type of object has types of
rights that make sense for it, so dbs have rights like connect,
create, etc, while tables have rights like insert, delete, etc you can
grant.
> I have many tables in the database but I don't want this user to be able to
> delete a relation. Granting the user rights per table is gonna
> take a lot of time.
Then write a script, and grant them to a role, and grant that role the
users who need those rights.
From | Date | Subject | |
---|---|---|---|
Next Message | SunWuKung | 2009-10-11 21:20:32 | strange plpgsql error |
Previous Message | Naoko Reeves | 2009-10-11 17:51:49 | Is there a way to know if trigger is invoked by the code from another trigger |