Postgresql Function Variable Parameters In Code