Deprecated API
Contents
-
Deprecated ClassesClassDescriptionSince 42.0.0, instead of this class you should use a fully featured connection pool like HikariCP, vibur-dbcp, commons-dbcp, c3p0, etc.Please use
PGConnectionPoolDataSource
Since 42.0.0, seePGPoolingDataSource
Please usePGSimpleDataSource
Please usePGConnectionPoolDataSource
Since 42.0.0, seePGPoolingDataSource
Please usePGSimpleDataSource
preferLibPQFactory
-
Deprecated FieldsFieldDescriptionin PgJDBC 9.4 as we now auto-size batches.
-
Deprecated MethodsMethodDescriptionThis 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()
insteaduseDriver.getMajorVersion()
andDriver.getMinorVersion()
insteadsince we can send the startup parameters as a multistatment transactionConfigure via java.util.loggingConfigure via java.util.loggingsince we can send the startup parameters as a multistatment transactionConfigure 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.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.preferPGbytea.toPGLiteral(Object, SqlSerializationContext)
to clarify the behaviour regardingInputStream
objects
-
Deprecated Constructors
-
Deprecated Enum ConstantsEnum ConstantDescriptionwe no longer use the terms master or slave in the driver, or the PostgreSQL project.since we can send the startup parameters as a multistatment transactionLogging is configured via java.util.logging.Logging is configured via java.util.logging.