Re: newbie : setting access for users in a web enviroment

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: robert mena <robert(dot)mena(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: newbie : setting access for users in a web enviroment
Date: 2005-12-23 21:36:12
Message-ID: 200512232236.13683.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2005-12-23 22:16:44 Re: Indices for select count(*)?
Previous Message Qingqing Zhou 2005-12-23 21:31:03 Re: newbie : setting access for users in a web enviroment