PostgreSQL: Valid variable names for functions
This is implicitly stated in the introduction to PL/pgSQL. 


  Identifiers are implicitly converted to lower case unless double-quoted, just as they are in ordinary SQL commands.


So a PL/pgSQL variable has to comply with the rules for SQL identifiers