From PostgreSQL's SQL perspective the session variables are common database objects (contra SQL/PL where package variables are SQL/PL language objects), and SQL disallows ambiguity. This is a little bit more complex problem, because session variables can be used everywhere in Postgres (not just in PL/pgSQL).
I though Oracle's PL/SQL, not SQL/PL