PostgreSQL 添加自定义变量

http://dba.stackexchange.com/questions/97095/set-session-custom-variable-to-store-user-id

set session "myapp.user" = '12345'; ... SELECT current_setting('myapp.user');

 

你可能感兴趣的:(PostgreSQL 添加自定义变量)