User right management concerning functions
User right management concerning functions
От:
"Christian Hofmann" <christian.hofmann@gmx.de>
Дата:
Hello, is it possible to create a postgresql-user without the right to use the SQL INSERT command but with the right to call a function that is using some SQL INSERT commands? Is this also possible with the SQL DELETE command? Thank you for every hint, Christian
Re: User right management concerning functions
От:
Bruno Wolff III <bruno@wolff.to>
Дата:
On Wed, Mar 02, 2005 at 19:44:41 +0100, Christian Hofmann wrote: > Hello, > > is it possible to create a postgresql-user without the right to use the SQL > INSERT command but with the right to call a function that is using some SQL > INSERT commands? > > Is this also possible with the SQL DELETE command? Yes. You can use the SECURITY DEFINER property of functions to do this.