Looked like a bug. > 25 нояб. 2018 г., в 14:50, Madan Kumar <madankumar1993@xxxxxxxxx> написал(а): > > Got it.. > In my case i was getting session_user in declare section and trying to validate later which always resulted in the function owner. > DECLARE > user text := SESSION_USER; > > So using it within the BEGIN; ...; END; clause worked for me. > Thanks. > > > Warm Regards, > Madan Kumar K >