Re: newbie : setting access for users in a web enviroment - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: newbie : setting access for users in a web enviroment
Date
Msg-id 200512232236.13683.peter_e@gmx.net
Whole thread Raw
In response to newbie : setting access for users in a web enviroment  (robert mena <robert.mena@gmail.com>)
Responses Re: newbie : setting access for users in a web enviroment
List pgsql-general
Am Freitag, 23. Dezember 2005 22:06 schrieb robert mena:
> GRANT CREATE,REFERENCES ON DATABASE test TO testadm;
>
> \z
> Access privileges for database "test"
>  Schema | Name | Type | Access privileges
> --------+------+------+-------------------
>
> How can I specify that the user testadm can perform those actions to this
> database?

For one thing, the command \z shows table privileges, so the empty table above
is not surprising.  pg_database would give you better information.

Second, the privilege type REFERENCES does not exist for databases, only for
tables, so the command you executed does not make sense.

I suggest you peruse the GRANT manual page again.

pgsql-general by date:

Previous
From: "Qingqing Zhou"
Date:
Subject: Re: newbie : setting access for users in a web enviroment
Next
From: Bruce Momjian
Date:
Subject: Re: Indices for select count(*)?