Michael Fuhr <mike@xxxxxxxx> writes: > Is this what you're after? I don't know if there's another way. > role_user := current_setting('role'); We currently define the spec's CURRENT_ROLE as equivalent to CURRENT_USER, but I wonder if it shouldn't do what Boris is after. regards, tom lane