Re: Limiting user access to a view only

From: Gaetano Mendola <mendola(at)bigfoot(dot)com>
To: Richard Colman <colman(at)uci(dot)edu>
Subject: Re: Limiting user access to a view only
Date: 2004-05-05 16:27:41
Message-ID: 409915FD.5070702@bigfoot.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Richard Colman wrote:

> I am a novice in this area.
>
> How would I set up a new user on PostgreSQL so that the new user is
limited
> to reading a particular view, and can do nothing else.

Hi,
first of all create the user as no a super user, after use the
GRANT command
( http://www.postgresql.org/docs/7.4/interactive/sql-grant.html )

in your case:

GRANT SELECT ON <view_name> TO <user_name>

Regards
Gaetano Mendola

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Peter Eisentraut 2004-05-05 17:10:26 Re: Limiting user access to a view only
Previous Message Robert Treat 2004-05-05 16:06:38 Re: Tool to compare db schemas?