Is there a particular reason that there is no getHost() delegated from AbstractJDBC*Connection to the ProtocolConnection? I have been unable to find a way to get the hostname.
pgsql-jdbc by date:
Соглашаюсь с условиями обработки персональных данных