Hi!
What about adding new function:pg_uid()pg_session_uid()
as reference to internal function GetUserId() and GetSessionUserId().
These can help useful, for instance in row based securety.
-- Olleg Samoylov