Postgresql Function Example With Parameters