Thanks for the reproducer.
I've implemented a fix here: https://github.com/pgjdbc/pgjdbc/pull/530
There are other similar places when type information is loaded by
using several queries.
For example: getProcedureColumns, however it is likely to be used with
some reasonable
schema/procedure patterns, thus it is less likely to fail.
Vladimir