GRANT on database

From: Boulat Khakimov <boulat(at)inet-interactif(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: GRANT on database
Date: 2001-03-05 18:30:01
Message-ID: 3AA3DB29.8E68038C@inet-interactif.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message will trillich 2001-03-05 18:32:36 Re: Re: With which user Apache accesses PostgreSQL
Previous Message Samuel Sieb 2001-03-05 18:19:11 Re: Re: With which user Apache accesses PostgreSQL