Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in PostgreSQL only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
PostgreSQL
Running function as superuser
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
ildiff
New Member
Join Date:
Sep 2008
Posts:
2
#1
Running function as superuser
Sep 17 '08, 08:42 AM
How I can run a function written in plpgsql as superuser when I'm logged into the database as normal user with a restrict access to tables?
rski
Recognized Expert
Contributor
Join Date:
Dec 2006
Posts:
700
#2
Sep 17 '08, 03:48 PM
1) you can set your role to admin and run a function (if you have enough strong privileges)
2) you can create this function from admin account with SECURE DEFINER option. Everybody would run this functions with admin rights.
Comment
Post
Cancel
ildiff
New Member
Join Date:
Sep 2008
Posts:
2
#3
Sep 17 '08, 07:30 PM
Problem solved with the security definer. Thanks a lot rski!
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment