-
Interfaces Interface Description org.postgresql.PGRefCursorResultSet As of 8.0, this interface is only present for backwards- compatibility purposes. New code should call getString() on the ResultSet that contains the refcursor to obtain the underlying cursor name.
-
Classes Class Description org.postgresql.ds.PGPoolingDataSource Since 42.0.0, instead of this class you should use a fully featured connection pool like HikariCP, vibur-dbcp, commons-dbcp, c3p0, etc.org.postgresql.fastpath.Fastpath This API is somewhat obsolete, as one may achieve similar performance and greater functionality by setting up a prepared statement to define the function call. Then, executing the statement with binary transmission of parameters and results substitutes for a fast-path function call.org.postgresql.fastpath.FastpathArg This API is somewhat obsolete, as one may achieve similar performance and greater functionality by setting up a prepared statement to define the function call. Then, executing the statement with binary transmission of parameters and results substitutes for a fast-path function call.org.postgresql.jdbc.EscapedFunctions org.postgresql.jdbc2.optional.ConnectionPool Please usePGConnectionPoolDataSource
org.postgresql.jdbc2.optional.PoolingDataSource Since 42.0.0, seePGPoolingDataSource
org.postgresql.jdbc2.optional.SimpleDataSource Please usePGSimpleDataSource
org.postgresql.jdbc3.Jdbc3ConnectionPool Please usePGConnectionPoolDataSource
org.postgresql.jdbc3.Jdbc3PoolingDataSource Since 42.0.0, seePGPoolingDataSource
org.postgresql.jdbc3.Jdbc3SimpleDataSource Please usePGSimpleDataSource
org.postgresql.ssl.jdbc4.LibPQFactory preferLibPQFactory
-
Fields Field Description org.postgresql.core.QueryExecutor.QUERY_DISALLOW_BATCHING in PgJDBC 9.4 as we now auto-size batches.
-
Methods Method Description org.postgresql.core.QueryExecutor.createFastpathParameters(int) This API is somewhat obsolete, as one may achieve similar performance and greater functionality by setting up a prepared statement to define the function call. Then, executing the statement with binary transmission of parameters and results substitutes for a fast-path function call.org.postgresql.core.QueryExecutor.fastpathCall(int, ParameterList, boolean) This API is somewhat obsolete, as one may achieve similar performance and greater functionality by setting up a prepared statement to define the function call. Then, executing the statement with binary transmission of parameters and results substitutes for a fast-path function call.org.postgresql.core.Utils.parseServerVersionStr(String) use specificVersion
instanceorg.postgresql.Driver.getVersion() useDriver.getMajorVersion()
andDriver.getMinorVersion()
insteadorg.postgresql.ds.common.BaseDataSource.getLoggerFile() Configure via java.util.loggingorg.postgresql.ds.common.BaseDataSource.getLoggerLevel() Configure via java.util.loggingorg.postgresql.ds.common.BaseDataSource.setLoggerFile(String) Configure via java.util.loggingorg.postgresql.ds.common.BaseDataSource.setLoggerLevel(String) Configure via java.util.loggingorg.postgresql.fastpath.Fastpath.fastpath(int, boolean, FastpathArg[]) please useFastpath.fastpath(int, FastpathArg[])
org.postgresql.largeobject.LargeObject.getOID() As of 8.3, replaced byLargeObject.getLongOID()
org.postgresql.largeobject.LargeObjectManager.create() As of 8.3, replaced byLargeObjectManager.createLO()
org.postgresql.largeobject.LargeObjectManager.delete(int) As of 8.3, replaced byLargeObjectManager.delete(long)
org.postgresql.largeobject.LargeObjectManager.open(int) As of 8.3, replaced byLargeObjectManager.open(long)
org.postgresql.largeobject.LargeObjectManager.unlink(int) As of 8.3, replaced byLargeObjectManager.unlink(long)
org.postgresql.PGConnection.addDataType(String, String) As of 8.0, replaced byPGConnection.addDataType(String, Class)
. This deprecated method does not work correctly for registering classes that cannot be directly loaded by the JDBC driver's classloader.org.postgresql.PGConnection.getFastpathAPI() This API is somewhat obsolete, as one may achieve similar performance and greater functionality by setting up a prepared statement to define the function call. Then, executing the statement with binary transmission of parameters and results substitutes for a fast-path function call.org.postgresql.PGRefCursorResultSet.getRefCursor() As of 8.0, replaced with calling getString() on the ResultSet that this ResultSet was obtained from.org.postgresql.PGStatement.setUseServerPrepare(boolean) As of build 302, replaced byPGStatement.setPrepareThreshold(int)
org.postgresql.ssl.jdbc4.LibPQFactory.verify(String, SSLSession) use PgjdbcHostnameVerifierorg.postgresql.ssl.jdbc4.LibPQFactory.verifyHostName(String, String)
-
Constructors Constructor Description org.postgresql.core.PGStream(SocketFactory, HostSpec) org.postgresql.ssl.jdbc4.LibPQFactory(Properties) preferLibPQFactory
-
Enum Constants Enum Constant Description org.postgresql.PGProperty.SOCKET_FACTORY_ARG use..Factory(Properties)
constructor.org.postgresql.PGProperty.SSL_FACTORY_ARG use..Factory(Properties)
constructor.