Re: [SQL] Permissons on database
Rob Arnold <rob@cabrion.com>
From: "Rob Arnold" <rob@cabrion.com>
To: <pgsql-sql@postgresql.org>, <pgsql-general@postgresql.org>, <pgsql-novice@postgresql.org>, "Roland Roberts" <roland@astrofoto.org>
Date: 2001-03-13T02:20:27Z
Lists: pgsql-general
Are you looking for "grant all to public" or "grant select to public"? ----- Original Message ----- From: "Roland Roberts" <roland@astrofoto.org> To: <pgsql-sql@postgresql.org>; <pgsql-general@postgresql.org>; <pgsql-novice@postgresql.org> Sent: Wednesday, March 07, 2001 3:40 PM Subject: Re: [SQL] Permissons on database > >>>>> "bk" == Boulat Khakimov <boulat@inet-interactif.com> writes: > > bk> How do I grant permissions on everything in the selected > bk> databes? > > bk> GRANT doesnt take as on object database name nor does it > bk> accept wild chars.... > > Attached is some Perl code I wrote long ago to do this. This > particular code was done for Keystone, a problem tracking database and > it would do a "GRANT ALL". Modify it as needed. Last I checked it > worked with both PostgreSQL 6.5.x and 7.0.x > > ---------------------------------------------------------------------------- ---- > > roland > -- > PGP Key ID: 66 BC 3B CD > Roland B. Roberts, PhD RL Enterprises > roland@rlenter.com 76-15 113th Street, Apt 3B > rbroberts@acm.org Forest Hills, NY 11375 >