http://dba.stackexchange.com/questions/97095/set-session-custom-variable-to-store-user-id
set session "myapp.user" = '12345';
...
SELECT current_setting('myapp.user');
http://dba.stackexchange.com/questions/97095/set-session-custom-variable-to-store-user-id
set session "myapp.user" = '12345';
...
SELECT current_setting('myapp.user');