Postgres Function Vs Procedure In Plsql To Number