PostgreSQL JDBC Driver 接続プロパティ

【PR】当サイトはプロモーションが含まれています。

PostgreSQL JDBC Driver 42.7

namedescriptionrequiredchoices
adaptiveFetchSpecifies if number of rows fetched in ResultSet should be adaptive to maxResultBuffer and max row size.false
adaptiveFetchMaximumSpecifies maximum number of rows used by adaptive fetch.false
adaptiveFetchMinimumSpecifies minimum number of rows used by adaptive fetch.false
allowEncodingChangesAllow for changes in client_encodingfalse
ApplicationNameName of the Application (backend >= 9.0)false
assumeMinServerVersionAssume the server is at least that versionfalse
authenticationPluginClassNameName of class which implements AuthenticationPluginfalse
autosaveSpecifies what the driver should do if a query fails. In autosave=always mode, JDBC driver sets a savepoint before each query, and rolls back to that savepoint in case of failure. In autosave=never mode (default), no savepoint dance is made ever. In autosave=conservative mode, safepoint is set for each query, however the rollback is done only for rare cases like 'cached statement cannot change return type' or 'statement XXX is not valid' so JDBC driver rollsback and retriesfalsealways,never,conservative
binaryTransferUse binary format for sending and receiving data if possiblefalse
binaryTransferDisableComma separated list of types to disable binary transfer. Either OID numbers or names. Overrides values in the driver default set and values set with binaryTransferEnable.false
binaryTransferEnableComma separated list of types to enable binary transfer. Either OID numbers or namesfalse
cancelSignalTimeoutThe timeout that is used for sending cancel command.false
cleanupSavepointsDetermine whether SAVEPOINTS used in AUTOSAVE will be released per query or notfalsetrue,false
connectTimeoutThe timeout value in seconds used for socket connect operations.false
currentSchemaSpecify the schema (or several schema separated by commas) to be set in the search-pathfalse
databaseMetadataCacheFieldsSpecifies the maximum number of fields to be cached per connection. A value of {@code 0} disables the cache.false
databaseMetadataCacheFieldsMiBSpecifies the maximum size (in megabytes) of fields to be cached per connection. A value of {@code 0} disables the cache.false
defaultRowFetchSizePositive number of rows that should be fetched from the database when more rows are needed for ResultSet by each fetch iterationfalse
disableColumnSanitiserEnable optimization that disables column name sanitiserfalse
escapeSyntaxCallModeSpecifies how the driver transforms JDBC escape call syntax into underlying SQL, for invoking procedures or functions. (backend >= 11)In escapeSyntaxCallMode=select mode (the default), the driver always uses a SELECT statement (allowing function invocation only).In escapeSyntaxCallMode=callIfNoReturn mode, the driver uses a CALL statement (allowing procedure invocation) if there is no return parameter specified, otherwise the driver uses a SELECT statement.In escapeSyntaxCallMode=call mode, the driver always uses a CALL statement (allowing procedure invocation only).falseselect,callIfNoReturn,call
groupStartupParametersThis is important in pool-by-transaction scenarios in order to make sure that all the statements reaches the same connection that is being initialized.false
gssEncModeForce Encoded GSS Modefalsedisable,allow,prefer,require
gsslibForce SSSPI or GSSAPIfalseauto,sspi,gssapi
gssResponseTimeoutTime in milliseconds we wait for a response from the server after requesting a GSS upgradefalse
hideUnprivilegedObjectsEnable hiding of database objects for which the current user has no privileges granted from the DatabaseMetaDatafalse
hostRecheckSecondsSpecifies period (seconds) after which the host status is checked again in case it has changedfalse
jaasApplicationNameSpecifies the name of the JAAS system or application login configuration.false
jaasLoginLogin with JAAS before doing GSSAPI authenticationfalse
kerberosServerNameThe Kerberos service name to use when authenticating with GSSAPI.false
loadBalanceHostsIf disabled hosts are connected in the given order. If enabled hosts are chosen randomly from the set of suitable candidatesfalse
localSocketAddressLocal Socket address, if set bind the client side of the socket to this addressfalse
loggerFileFile name output of the Loggerfalse
loggerLevelLogger level of the driverfalseOFF,DEBUG,TRACE
loginTimeoutSpecify how long in seconds to wait for establishment of a database connection.false
logServerErrorDetailInclude full server error detail in exception messages. If disabled then only the error itself will be included.false
logUnclosedConnectionsWhen connections that are not explicitly closed are garbage collected, log the stacktrace from the opening of the connection to trace the leak sourcefalse
maxResultBufferSpecifies size of buffer during fetching result set. Can be specified as specified size or percent of heap memory.false
optionsSpecify 'options' connection initialization parameter.false
passwordPassword to use when authenticating.false
PGDBNAMEDatabase name to connect to (may be specified directly in the JDBC URL)true
PGHOSTHostname of the PostgreSQL server (may be specified directly in the JDBC URL)false
PGPORTPort of the PostgreSQL server (may be specified directly in the JDBC URL)false
preferQueryModeSpecifies which mode is used to execute queries to database: simple means ('Q' execute, no parse, no bind, text mode only), extended means always use bind/execute messages, extendedForPrepared means extended for prepared statements only, extendedCacheEverything means use extended protocol and try cache every statement (including Statement.execute(String sql)) in a query cache.falseextended,extendedForPrepared,extendedCacheEverything,simple
preparedStatementCacheQueriesSpecifies the maximum number of entries in per-connection cache of prepared statements. A value of {@code 0} disables the cache.false
preparedStatementCacheSizeMiBSpecifies the maximum size (in megabytes) of a per-connection prepared statement cache. A value of {@code 0} disables the cache.false
prepareThresholdStatement prepare threshold. A value of {@code -1} stands for forceBinaryfalse
protocolVersionForce use of a particular protocol version when connecting, currently only version 3 is supported.false3
quoteReturningIdentifiersQuote identifiers provided in returning arrayfalse
readOnlyPuts this connection in read-only modefalse
readOnlyModeControls the behavior when a connection is set to be read only, one of 'ignore', 'transaction', or 'always' When 'ignore', setting readOnly has no effect. When 'transaction' setting readOnly to 'true' will cause transactions to BEGIN READ ONLY if autocommit is 'false'. When 'always' setting readOnly to 'true' will set the session to READ ONLY if autoCommit is 'true' and the transaction to BEGIN READ ONLY if autocommit is 'false'.falseignore,transaction,always
receiveBufferSizeSocket read buffer sizefalse
replicationConnection parameter passed in startup message, one of 'true' or 'database' Passing 'true' tells the backend to go into walsender mode, wherein a small set of replication commands can be issued instead of SQL statements. Only the simple query protocol can be used in walsender mode. Passing 'database' as the value instructs walsender to connect to the database specified in the dbname parameter, which will allow the connection to be used for logical replication from that database. (backend >= 9.4)false
reWriteBatchedInsertsEnable optimization to rewrite and collapse compatible INSERT statements that are batched.false
sendBufferSizeSocket write buffer sizefalse
serviceService name to be searched in pg_service.conf resourcefalse
socketFactorySpecify a socket factory for socket creationfalse
socketFactoryArgArgument forwarded to constructor of SocketFactory class.false
socketTimeoutThe timeout value in seconds max(2147484) used for socket read operations.false
sslControl use of SSL (any non-null value causes SSL to be required)false
sslcertThe location of the client's SSL certificatefalse
sslfactoryProvide a SSLSocketFactory class when using SSL.false
sslfactoryargArgument forwarded to constructor of SSLSocketFactory class.false
sslhostnameverifierA class, implementing javax.net.ssl.HostnameVerifier that can verify the serverfalse
sslkeyThe location of the client's PKCS#8 SSL keyfalse
sslmodeParameter governing the use of SSLfalsedisable,allow,prefer,require,verify-ca,verify-full
sslpasswordThe password for the client's ssl key (ignored if sslpasswordcallback is set)false
sslpasswordcallbackA class, implementing javax.security.auth.callback.CallbackHandler that can handle PasswordCallback for the ssl password.false
sslResponseTimeoutTime in milliseconds we wait for a response from the server after requesting SSL upgradefalse
sslrootcertThe location of the root certificate for authenticating the server.false
sspiServiceClassThe Windows SSPI service class for SPNfalse
stringtypeThe type to bind String parameters as (usually 'varchar', 'unspecified' allows implicit casting to other types)falseunspecified,varchar
targetServerTypeSpecifies what kind of server to connectfalseany,primary,master,slave,secondary,preferSlave,preferSecondary,preferPrimary
tcpKeepAliveEnable or disable TCP keep-alive. The default is {@code false}.false
tcpNoDelayEnable or disable TCP no delay. The default is (@code true}.false
unknownLengthSpecifies the length to return for types of unknown lengthfalse
userUsername to connect to the database as.true
useSpnegoUse SPNEGO in SSPI authentication requestsfalse
xmlFactoryFactoryFactory class to instantiate factories for XML processingfalse

PostgreSQL JDBC Driver Download

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です