dbTalk Databases Forums  

Newbie Question, how to grant permissions on all tables in schema/db

comp.databases.postgresql.general comp.databases.postgresql.general


Discuss Newbie Question, how to grant permissions on all tables in schema/db in the comp.databases.postgresql.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Kenji Morishige
 
Posts: n/a

Default Newbie Question, how to grant permissions on all tables in schema/db - 11-08-2004 , 07:00 PM






Hi guys, I'm wondering what the easy way to grant user/group access on all tables
in a db. I just migrated about 200 tables from my MySQL database using a cool
migration script, but now all the tables are owned by me in the schema public.

That is all fine and all, but I wish I could run a command like:

grant all on * to group developers;

where developers contain my created users.

is there a way to do this easily?

Thanks in advance!
-Kenji

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo (AT) postgresql (DOT) org


Reply With Quote
  #2  
Old   
Michael Fuhr
 
Posts: n/a

Default Re: Newbie Question, how to grant permissions on all tables in schema/db - 11-08-2004 , 07:44 PM






On Mon, Nov 08, 2004 at 05:00:49PM -0800, Kenji Morishige wrote:

Quote:
I'm wondering what the easy way to grant user/group access on all tables
in a db.
This comes up from time to time -- search the archives for phrases
like "grant" and "all tables". The responses usually suggest writing
a script or function to query the system catalogs for the list of
tables, views, sequences, etc.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo (AT) postgresql (DOT) org



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.