return value from stored procedure postgres jdbc code example Example: call stored function postgres SELECT my_function();