-
InterfaceDescriptionAs 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.
-
ClassDescriptionSince 42.0.0, instead of this class you should use a fully featured connection pool like HikariCP, vibur-dbcp, commons-dbcp, c3p0, etc.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.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.Please use
PGConnectionPoolDataSource
Since 42.0.0, seePGPoolingDataSource
Please usePGSimpleDataSource
Please usePGConnectionPoolDataSource
Since 42.0.0, seePGPoolingDataSource
Please usePGSimpleDataSource
preferLibPQFactory
-
FieldDescriptionin PgJDBC 9.4 as we now auto-size batches.
-
MethodDescriptionThis 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.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.the method returns a copy of the set, so it is not efficient. Use
TypeTransferModeRegistry.useBinaryForReceive(int)
the method returns a copy of the set, so it is not efficient. UseTypeTransferModeRegistry.useBinaryForSend(int)
useQueryExecutorBase.getCloseAction()
insteaduse specificVersion
instanceuseDriver.getMajorVersion()
andDriver.getMinorVersion()
insteadConfigure via java.util.loggingConfigure via java.util.loggingConfigure via java.util.loggingConfigure via java.util.loggingplease useFastpath.fastpath(int, FastpathArg[])
UseFastpath.getData(String, FastpathArg[])
if you expect a binary result, or one ofFastpath.getInteger(String, FastpathArg[])
orFastpath.getLong(String, FastpathArg[])
if you expect a numeric oneWill be removed for avoiding a dependency to thejava.desktop
module.was used internally, and not used anymoreAs of 8.3, replaced byLargeObject.getLongOID()
As of 8.3, replaced byLargeObjectManager.createLO()
As of 8.3, replaced byLargeObjectManager.createLO(int)
As of 8.3, replaced byLargeObjectManager.delete(long)
As of 8.3, replaced byLargeObjectManager.open(long)
As of 8.3, replaced byLargeObjectManager.open(long, int)
As of 8.3, replaced byLargeObjectManager.unlink(long)
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.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.usePGProperty.getOrDefault(Properties)
insteadAs of 8.0, replaced with calling getString() on the ResultSet that this ResultSet was obtained from.As of build 302, replaced byPGStatement.setPrepareThreshold(int)
use PgjdbcHostnameVerifierpreferPGConnection.alterUserPassword(String, char[], String)
orPasswordUtil.encodeScramSha256(char[])
for better security.
-
Enum ConstantDescriptionwe no longer use the terms master or slave in the driver, or the PostgreSQL project.Logging is configured via java.util.logging.Logging is configured via java.util.logging.use
..Factory(Properties)
constructor.