X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 18B22D1C9F2 for ; Fri, 1 Aug 2003 20:14:49 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 68493-05 for ; Fri, 1 Aug 2003 17:13:42 -0300 (ADT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.177]) by svr1.postgresql.org (Postfix) with ESMTP id 5B303D1C9ED for ; Fri, 1 Aug 2003 17:14:47 -0300 (ADT) Received: from [212.227.126.160] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 19igIa-0001x9-00; Fri, 01 Aug 2003 22:14:48 +0200 Received: from [80.129.139.220] (helo=pse-consulting.de) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 19igIZ-0007P1-00; Fri, 01 Aug 2003 22:14:48 +0200 Message-ID: <3F2ACA3F.10800@pse-consulting.de> Date: Fri, 01 Aug 2003 22:14:55 +0200 From: Andreas Pflug User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: MaRcElO PeReIrA Cc: pgsql-admin@postgresql.org Subject: Re: Grant on several tables at once References: <3F2AC832.7090803@yahoo.com.br> In-Reply-To: <3F2AC832.7090803@yahoo.com.br> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/33 X-Sequence-Number: 9756 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