Re: Read only access, via functions only - Mailing list pgsql-general

From Craig Ringer
Subject Re: Read only access, via functions only
Date
Msg-id 49127AFA.3020907@postnewspapers.com.au
Whole thread Raw
In response to Re: Read only access, via functions only  ("Webb Sprague" <webb.sprague@gmail.com>)
List pgsql-general
Webb Sprague wrote:
>> you can set transactions read only but the user can turn them off. Use
>> views, functions and GRANT.
>
> Views was the key word.  I had tried to do it with functions and GRANT alone.

You can also do a lot with SECURITY DEFINER functions - for example, if
you want to grant them the ability to make only very limited changes to
the data set and want to run some checking logic before allowing the change.

--
Craig Ringer

pgsql-general by date:

Previous
From: "Scott Marlowe"
Date:
Subject: Re: Storage location of temporary files
Next
From: "praveen"
Date:
Subject: Re: [ADMIN] Installation Error of postgresql-8.1.5 with perl.