user | String | null | The database user on whose behalf the connection is being made. |
password | String | null | The database user's password. |
options | String | null | Specify 'options' connection initialization parameter. |
service | String | null | Specify 'service' name described in pg_service.conf file. References: The Connection Service File and The Password File. 'service' file can provide all properties including 'hostname=', 'port=' and 'dbname='. |
ssl | Boolean | false | Control use of SSL (true value causes SSL to be required) |
sslfactory | String | org.postgresql.ssl.LibPQFactory | Provide a SSLSocketFactory class when using SSL. |
sslfactoryarg (deprecated) | String | null | Argument forwarded to constructor of SSLSocketFactory class. |
sslmode | String | prefer | Controls the preference for opening using an SSL encrypted connection. |
sslcert | String | null | The location of the client's SSL certificate |
sslkey | String | null | The location of the client's PKCS#8 or PKCS#12 SSL key, for PKCS the extension must be .p12 or .pfx and the alias must be user |
sslrootcert | String | null | The location of the root certificate for authenticating the server. |
sslhostnameverifier | String | null | The name of a class (for use in Class.forName(String)) that implements javax.net.ssl.HostnameVerifier and can verify the server hostname. |
sslpasswordcallback | String | null | The name of a class (for use in Class.forName(String)) that implements javax.security.auth.callback.CallbackHandler and can handle PasswordCallback for the ssl password. |
sslpassword | String | null | The password for the client's ssl key (ignored if sslpasswordcallback is set) |
sslnegotiation | String | postgres | Determines if ALPN ssl negotiation will be used or not. Set to direct to choose ALPN. |
sendBufferSize | Integer | -1 | Socket write buffer size |
maxSendBufferSize | Integer | 65536 | Maximum amount of bytes buffered before sending to the backend. pgjdbc uses least(maxSendBufferSize, greatest(8192, SO_SNDBUF)) to determine the buffer size. |
receiveBufferSize | Integer | -1 | Socket read buffer size |
logServerErrorDetail | Boolean | true | Allows server error detail (such as sql statements and values) to be logged and passed on in exceptions. Setting to false will mask these errors so they won't be exposed to users, or logs. |
allowEncodingChanges | Boolean | false | Allow for changes in client_encoding |
logUnclosedConnections | Boolean | false | When connections that are not explicitly closed are garbage collected, log the stacktrace from the opening of the connection to trace the leak source |
binaryTransfer | Boolean | true | Enable binary transfer for supported built-in types if possible. Setting this to false disables any binary transfer unless it's individually activated for each type with binaryTransferEnable . Whether it is possible to use binary transfer at all depends on server side prepared statements (see prepareThreshold ). |
binaryTransferEnable | String | "" | Comma separated list of types to enable binary transfer. Either OID numbers or names. |
binaryTransferDisable | String | "" | Comma 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. |
prepareThreshold | Integer | 5 | Determine the number of PreparedStatement executions required before switching over to use server side prepared statements. The default is five, meaning start using server side prepared statements on the fifth execution of the same PreparedStatement object. A value of -1 activates server side prepared statements and forces binary transfer for enabled types (see binaryTransfer ). |
preparedStatementCacheQueries | Integer | 256 | Specifies the maximum number of entries in per-connection cache of prepared statements. A value of 0 disables the cache. |
preparedStatementCacheSizeMiB | Integer | 5 | Specifies the maximum size (in megabytes) of a per-connection prepared statement cache. A value of 0 disables the cache. |
defaultRowFetchSize | Integer | 0 | Positive number of rows that should be fetched from the database when more rows are needed for ResultSet by each fetch iteration |
loginTimeout | Integer | 0 | Specify how long in seconds max(2147484) to wait for establishment of a database connection. |
connectTimeout | Integer | 10 | The timeout value in seconds max(2147484) used for socket connect operations. |
socketTimeout | Integer | 0 | The timeout value in seconds max(2147484) used for socket read operations. |
cancelSignalTimeout | Integer | 10 | The timeout that is used for sending cancel command. |
sslResponseTimeout | Integer | 5000 | Socket timeout in milliseconds waiting for a response from a request for SSL upgrade from the server. |
tcpKeepAlive | Boolean | false | Enable or disable TCP keep-alive. |
tcpNoDelay | Boolean | true | Enable or disable TCP no delay. |
ApplicationName | String | PostgreSQL JDBC Driver | The application name (require server version >= 9.0). If assumeMinServerVersion is set to >= 9.0 this will be sent in the startup packets, otherwise after the connection is made |
readOnly | Boolean | false | Puts this connection in read-only mode |
readOnlyMode | String | transaction | Specifies the behavior when a connection is set to be read only, possible values: ignore, transaction, always |
disableColumnSanitiser | Boolean | false | Enable optimization that disables column name sanitiser |
assumeMinServerVersion | String | null | Assume the server is at least that version |
currentSchema | String | null | Specify the schema (or several schema separated by commas) to be set in the search-path |
targetServerType | String | any | Specifies what kind of server to connect, possible values: any, master, slave (deprecated), secondary, preferSlave (deprecated), preferSecondary, preferPrimary |
hostRecheckSeconds | Integer | 10 | Specifies period (seconds) after which the host status is checked again in case it has changed |
loadBalanceHosts | Boolean | false | If disabled hosts are connected in the given order. If enabled hosts are chosen randomly from the set of suitable candidates |
socketFactory | String | null | Specify a socket factory for socket creation |
socketFactoryArg (deprecated) | String | null | Argument forwarded to constructor of SocketFactory class. |
autosave | String | never | Specifies what the driver should do if a query fails, possible values: always, never, conservative |
cleanupSavepoints | Boolean | false | In Autosave mode the driver sets a SAVEPOINT for every query. It is possible to exhaust the server shared buffers. Setting this to true will release each SAVEPOINT at the cost of an additional round trip. |
preferQueryMode | String | extended | Specifies which mode is used to execute queries to database, possible values: extended, extendedForPrepared, extendedCacheEverything, simple |
reWriteBatchedInserts | Boolean | false | Enable optimization to rewrite and collapse compatible INSERT statements that are batched. |
escapeSyntaxCallMode | String | select | Specifies how JDBC escape call syntax is transformed into underlying SQL (CALL/SELECT), for invoking procedures or functions (requires server version >= 11), possible values: select, callIfNoReturn, call |
maxResultBuffer | String | null | Specifies size of result buffer in bytes, which can't be exceeded during reading result set. Can be specified as particular size (i.e. "100", "200M" "2G") or as percent of max heap memory (i.e. "10p", "20pct", "50percent") |
gssLib | String | auto | Permissible values are auto (default, see below), sspi (force SSPI) or gssapi (force GSSAPI-JSSE). |
gssResponseTimeout | Integer | 5000 | Socket timeout in milliseconds waiting for a response from a request for GSS encrypted connection from the server. |
gssEncMode | String | allow | Controls the preference for using GSSAPI encryption for the connection, values are disable, allow, prefer, and require |
useSpnego | String | false | Use SPNEGO in SSPI authentication requests |
adaptiveFetch | Boolean | false | Specifies if number of rows fetched in ResultSet by each fetch iteration should be dynamic. Number of rows will be calculated by dividing maxResultBuffer size into max row size observed so far. Requires declaring maxResultBuffer and defaultRowFetchSize for first iteration. |
adaptiveFetchMinimum | Integer | 0 | Specifies minimum number of rows, which can be calculated by adaptiveFetch. Number of rows used by adaptiveFetch cannot go below this value. |
adaptiveFetchMaximum | Integer | -1 | Specifies maximum number of rows, which can be calculated by adaptiveFetch. Number of rows used by adaptiveFetch cannot go above this value. Any negative number set as adaptiveFetchMaximum is used by adaptiveFetch as infinity number of rows. |
localSocketAddress | String | null | Hostname or IP address given to explicitly configure the interface that the driver will bind the client side of the TCP/IP connection to when connecting. |
quoteReturningIdentifiers | Boolean | true | By default we double quote returning identifiers. Some ORM's already quote them. Switch allows them to turn this off |
authenticationPluginClassName | String | null | Fully qualified class name of the class implementing the AuthenticationPlugin interface. If this is null, the password value in the connection properties will be used. |
unknownLength | Integer | Integer.MAX_LENGTH | Specifies the length to return for types of unknown length |
stringtype | String | null | Specify the type to use when binding PreparedStatement parameters set via setString() |
channelBinding | String | prefer | This option controls the client's use of channel binding. require means that the connection must employ channel binding, prefer means that the client will choose channel binding if available, and disable prevents the use of channel binding. |