GRANT on database - Mailing list pgsql-general

From Boulat Khakimov
Subject GRANT on database
Date
Msg-id 3AA3DB29.8E68038C@inet-interactif.com
Whole thread Raw
Responses Re: GRANT on database
List pgsql-general
Hi,

How do I grant all on database TO PUBLIC?
Without having to go through each table in that database?

Basically I have created a databases as one user, and I want another
user
to be able to access all tables in that database. However
when i run simple query like "SELECT * from tablename"  as that "other
user"
it gives me (ERROR:  tablename: Permission denied).

GRANT doesnt let you grant access to the entire databases , only tables.
and since I have over 30 tables in my DB goin through each table and
setting
permissions by hand is too time consuming.



Regards,
Boulat.



--
Nothing Like the Sun

pgsql-general by date:

Previous
From: Samuel Sieb
Date:
Subject: Re: Re: With which user Apache accesses PostgreSQL
Next
From: will trillich
Date:
Subject: Re: GRANT on database