Avi Schwartz <avi@CFFtechnologies.com> writes:
> In other databases, stored procedures run under the privilege of the
> stored procedure owner. Is it supposed to work the same in postgresql?
Only if you attach the SECURITY DEFINER option to the function.
regards, tom lane