Talvez isso ajude:https://jdbc.postgresql. org/documentation/83/callproc.html#callproc-resultset-setof Eu realmente não mexi com isso antes :P