Re: grant problem

From: Richard Huxton <dev(at)archonet(dot)com>
To: Rajarshi Mukherjee <mukherjee(dot)rajarshi(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: grant problem
Date: 2005-03-22 12:34:38
Message-ID: 424010DE.9020802@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Rajarshi Mukherjee wrote:
> Hello all,
>
> i have a function that updates a table. I gave execute grant on it to
> a particular user but no grant on the table in question.
>
> when logging in as that user and executing the function, i get an error
> ERROR: permission denied for relation <table_name>
>
> How can i ensure that any update on this table is only done through
> that function, and that the function is oublicly executable?

Check the manuals for "CREATE FUNCTION" - particularly the section on
SECURITY INVOKER vs SECURITY DEFINER

--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Mike Rylander 2005-03-22 12:37:48 Re: Exporting to XML
Previous Message Szmutku Zoltán 2005-03-22 12:26:45 Constraint problem