From: | Bruno Wolff III <bruno(at)wolff(dot)to> |
---|---|
To: | Nosyman <nosyman(at)easymail(dot)ro> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: GRANT ON all tables |
Date: | 2004-08-27 19:20:32 |
Message-ID: | 20040827192032.GB456@wolff.to |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
On Fri, Aug 27, 2004 at 15:30:32 -0000,
Nosyman <nosyman(at)easymail(dot)ro> wrote:
> Hi there,
>
> I need to know how can I give privileges to all the tables in a database.
> For example, I have one database named "test" .This database contains about
> 30 tables. I want to grant SELECT and DELETE privileges to the 'test_user'
> by typing GRANT .... just once (something like GRANT SELECT, DELETE ON
> all_tables TO test_user). It is possible? I search PostgreSQL docs and I
> can't find out...
There is no command to do this. You can write a script that queries
the information schema and then issues a grant command for each table.
From | Date | Subject | |
---|---|---|---|
Next Message | Dino Vliet | 2004-08-27 19:35:42 | Re: help with trigger |
Previous Message | Josh Berkus | 2004-08-27 18:59:26 | Re: Aggregate query for multiple records |