Greg Stark <[EMAIL PROTECTED]> writes: > Tom Lane <[EMAIL PROTECTED]> writes: >> One argument against it is that it'd break trying to log who-did-what >> by the expedient of having a column default CURRENT_USER: >> blame_me text default current_user
> No reason there couldn't be a separate function that returns the _actual_ user > rather than the effective user. ... except that the SQL spec says the above should work. In any case, if you're thinking of SESSION_USER, that's not really the right thing either. Imagine that the INSERT is being executed by a SECURITY DEFINER function --- the owner of the function, not the session user, is really the one that should be "blamed" with the insert. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly