Postgresql Function Variable Declaration Definition Finance