Postgresql Function Variable Declaration Rules