pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas Pflug <pgadmin@pse-consulting.de>
To: MaRcElO PeReIrA <gandalf_mp@yahoo.com.br>
Cc: pgsql-admin@postgresql.org
Subject: Re: Grant on several tables at once
Date: Fri, 01 Aug 2003 22:14:55 +0200
Message-ID: <3F2ACA3F.10800@pse-consulting.de> (raw)
In-Reply-To: <3F2AC832.7090803@yahoo.com.br>
References: <3F2AC832.7090803@yahoo.com.br>

MaRcElO PeReIrA wrote:

> Hello All,
>
> I have a database that contain 72 tables. How can I grant "SELECT" on 
> all those 72 tables to a user, at once?
>
> I use to do:
>
> # grant select on table1 to marcelo;
> # grant select on table2 to marcelo;
> # ...
> # grant select on table72 to marcelo;
>
> but it is a lot of tables... I would like to do this at once!
>
> Thanks in advance and
> Best Regards,
>
> Marcelo


Hi Marcelo,
you will need a tool for that. pgAdmin2 (win32 only) can grant on  
multiple objects at once, pgAdmin3 lacks this feature at the moment.

Regards,
Andreas




view thread (5+ messages)  latest in thread

Message-ID: <3F2ACA3F.10800@pse-consulting.de>
Permalink:  ../3F2ACA3F.10800@pse-consulting.de/
Also on:    postgresql.org/message-id/3F2ACA3F.10800@pse-consulting.de

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: pgadmin@pse-consulting.de, gandalf_mp@yahoo.com.br
  Subject: Re: Grant on several tables at once
  In-Reply-To: <3F2ACA3F.10800@pse-consulting.de>
  References: <3F2AC832.7090803@yahoo.com.br> <3F2ACA3F.10800@pse-consulting.de>

* 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