Note:
org.postgresql.jdbc.PgConnection, org.postgresql.core.BaseConnection,
and org.postgresql.copy.CopyManager(BaseConnection connection) are NOT part
of pgjdbc public API.
Those connection classes and CopyManager constructor should NOT be used in
application code.
The proper interface is org.postgresql.PGConnection.
The proper way to get CopyManager is to call
org.postgresql.PGConnection#getCopyAPI.
When using a connection pool, PGConnection pgConnection = connection.unwrap
( PGConnection.class ); should work.
Vladimir