grant on multiple tables?

From: "Robert J(dot) Sanford, Jr(dot)" <rsanford(at)nolimitsystems(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: grant on multiple tables?
Date: 2001-12-05 18:52:04
Message-ID: PHENKEEPJCPAMKFKNEOGGECICHAA.rsanford@nolimitsystems.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

if i want to perform a grant on all of the tables in a database to an
individual or group, is there a way to do that? right now i'm trying to
use...

grant all on
(select tablename from pg_tables where tablename not like 'pg%')
to groupName;

but i get parsing errors (even if i remove the parens). is there an easy way
to do this? can i grant priveleges on a database? that isn't in the momjian
book as being a valid target object...

rjsjr

Browse pgsql-general by date

  From Date Subject
Next Message Laszlo Hornyak 2001-12-05 19:39:28 Re: [GENERAL] java stored procedures
Previous Message Antonio Fiol Bonnín 2001-12-05 18:28:48 Re: PostgreSQL Callback Mechanism