I'm interested in your solution but your link is no longer working....
pgsql-jdbc by date:
Соглашаюсь с условиями обработки персональных данных