Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to implicitly allow update with no explicit grant 1

Status
Not open for further replies.

shimonsbd

Programmer
Aug 31, 2008
1
CA
It seems that in PG a plpgsql function operates with the access privileges of the connected user. In Oracle, and others, the function can have the privileges of the user that compiled it so that any user with an execute privilege on the function can execute it without running into permission violation. Do you know of a way to provide such implicit privileges in PG?

 
You can use option
Code:
SECURITY DEFINER
when create function.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top