Although this does not fail, using a debugger, I can see that pgConnection is really an
org.postgresql.jdbc.PgConnection (not an org.postgresql.PGConnection), and there is not way it seems that I can bridge between the two... even by using:
If you get this I'm not sure where the issue is...
org.postgresql.jdbc.PgConnection implements org.postgresql.core.BaseConnect which extends
org.postgresql.PGConnection which is the interface that you desire.