Grant on several tables at once

From: MaRcElO PeReIrA <gandalf_mp(at)yahoo(dot)com(dot)br>
To: pgsql-admin(at)postgresql(dot)org
Subject: Grant on several tables at once
Date: 2003-08-01 20:06:10
Message-ID: 3F2AC832.7090803@yahoo.com.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Andreas Pflug 2003-08-01 20:14:55 Re: Grant on several tables at once
Previous Message Tom Lane 2003-08-01 16:48:35 Re: Smaller template database?