Re: Read only access, via functions only

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: Webb Sprague <webb(dot)sprague(at)gmail(dot)com>
Cc: jd(at)commandprompt(dot)com, pgsql-general(at)postgresql(dot)org
Subject: Re: Read only access, via functions only
Date: 2008-11-06 05:04:58
Message-ID: 49127AFA.3020907@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message praveen 2008-11-06 05:22:22 Re: Installation Error of postgresql-8.1.5 with perl.
Previous Message Scott Marlowe 2008-11-06 04:10:13 Re: Storage location of temporary files