stored procedure return value postgresql