Variable Declaration In Postgresql Function