Re: Data access permission? - Mailing list pgsql-general

From Manuel Sugawara
Subject Re: Data access permission?
Date
Msg-id m3d7azkti4.fsf@dep1.fciencias.unam.mx
Whole thread Raw
In response to Data access permission?  (Pluto <pluto@annoyance.net>)
List pgsql-general
Pluto <pluto@annoyance.net> writes:

> Dear all
>
> Can PostgreSQL, MySQL or other database programs can allow some user to
> access some specific data while other data is prohibited to them in a
> same database? If so, how to implement that? For instance, a client can
> print last month's statement through the Internet by providing a
> password to him/her; this client can only check the data that belong to
> him/her, at the meantime, there is other clients' data in the same
> database. Thanks for your kind help!

I don't understand very well the idea. If you want to restrict user
access per table you can do it using the commands grant/revoke;
however if you want to restrict user access per row; I'm afraid this
is not possible, at least not without triggers or rules.

Regards,
Manuel.

pgsql-general by date:

Previous
From: Doug McNaught
Date:
Subject: Re: Globally Unique IDs?
Next
From: elwood@agouros.de (Konstantinos Agouros)
Date:
Subject: Stupid Access-Question