Alternatively, a way to get at the OuterUserId? Or the outer-most current_user in the function stack?
I should explain why I need this: for audit functionality where I want the triggers' procedures to be SECURITY DEFINER so only they can write to audit tables and such, but I want them to see the current_user of the *caller*, rather than current_user being the DEFINER's name. Nico -- -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers