From: Bruno Wolff III <bruno@wolff.to>
To: Nosyman <nosyman@easymail.ro>
Cc: pgsql-sql@postgresql.org
Subject: Re: GRANT ON all tables
Date: Fri, 27 Aug 2004 14:20:32 -0500
Message-ID: <20040827192032.GB456@wolff.to> (raw)
In-Reply-To: <200408271230.i7RCUWCw027233@acten.itcnet.ro>
References: <200408271230.i7RCUWCw027233@acten.itcnet.ro>
On Fri, Aug 27, 2004 at 15:30:32 -0000,
Nosyman <nosyman@easymail.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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: bruno@wolff.to, nosyman@easymail.ro
Subject: Re: GRANT ON all tables
In-Reply-To: <20040827192032.GB456@wolff.to>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox