Tom Lane schrieb am 01.02.2017 um 16:24:
> So really what would be appropriate for JDBC to provide, IMO, is
> some equivalent of libpq's PQresultErrorField(). Perhaps that's
> already there.
The JDBC driver already does that.
Vladimir pointed me to the correct location:
https://jdbc.postgresql.org/documentation/publicapi/org/postgresql/util/ServerErrorMessage.html