Postgresql Create Function Example In Sql