From: Michael J Davis <michael.j.davis@tvguide.com>
To: 'G. Anthony Reina' <reina@nsi.edu>
To: pgsql-sql@postgreSQL.org
Subject: RE: [SQL] Granting select on ALL tables at once
Date: Tue, 4 May 1999 00:52:43 -0500
Message-ID: <93C04F1F5173D211A27900105AA8FCFC145474@lambic.prevuenet.com> (raw)
I use the following technique a lot:
-- create a file containing a bunch of grant commands
\g grant_all.sql
select (('GRANT ALL ON ' || relname) || ' TO PUBLIC;') as "-- grant"
FROM pg_class WHERE relkind = 'r' and substr(relname,1,3) <> 'pg_'
order by relname; -- table and views
\g
-- execute the file of grant commends
\i grant_all.sql
-----Original Message-----
From: G. Anthony Reina [SMTP:reina@nsi.edu]
Sent: Monday, May 03, 1999 6:05 PM
To: pgsql-sql@postgreSQL.org
Subject: [SQL] Granting select on ALL tables at once
Is there a way to grant a select to a user on all tables. So far,
I've
only been able to do this table by table.
Thanks.
-Tony
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-sql@postgresql.org
Cc: michael.j.davis@tvguide.com, reina@nsi.edu
Subject: Re: [SQL] Granting select on ALL tables at once
In-Reply-To: <93C04F1F5173D211A27900105AA8FCFC145474@lambic.prevuenet.com>
References: <93C04F1F5173D211A27900105AA8FCFC145474@lambic.prevuenet.com>
* 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