Use a função current_setting() SELECT current_setting('abc.my_var'); http://www.postgresql.org /docs/current/static/functions-admin.html#FUNCTIONS-ADMIN-SET