"Greg" <greg(dot)wickham(at)grangenet(dot)net> writes:
> When GRANTing execute to a plpgsql function it
> appears to run with the priviledge of the user and
> NOT with the priviledges of the owner of the function.
That's what it's supposed to do. See the SECURITY DEFINER
option of CREATE FUNCTION for the other behavior.
regards, tom lane