Re: Tomcat JDBC Connection Pool interfaces to PostgreSQL... - Mailing list pgsql-jdbc

From Vladimir Sitnikov
Subject Re: Tomcat JDBC Connection Pool interfaces to PostgreSQL...
Date
Msg-id CAB=Je-GePXXqyhuQSzf_Nx7+AVtZQRcGFWe3siOKEkjyKFjyXg@mail.gmail.com
Whole thread Raw
In response to Re: Tomcat JDBC Connection Pool interfaces to PostgreSQL...  (Eric Neron <eneron@e-djuster.ca>)
List pgsql-jdbc
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

pgsql-jdbc by date:

Previous
From: Vladimir Sitnikov
Date:
Subject: Re: Tomcat JDBC Connection Pool interfaces to PostgreSQL...
Next
From: Vitalii Tymchyshyn
Date:
Subject: Re: Cast java.sql.Connection to PGConnection