PostgreSQL URL properties

Option Description Type Example
user The PostgreSQL login ID. This property is required unless the auth-part of the URL was used String user=root
password The password for user. This property is required unless the auth-part of the URL was used String password=swordfish
connect-timeout Connect timeout in seconds. Default is 3 seconds. It is a checked error to use a value equal to or less than 0 Integer connect-timeout=5
use-ssl Used for establishing secure connections using SSL. OpenSSL support must be enabled/linked in the client library. Default is false Boolean (true/false) use-ssl=true
unix-socket Connect to the database server over a unix socket on localhost. The unix-socket value should be the name of the directory in which the unix socket file is stored. Note that this is different from the MySQL unix-socket parameter which specify the full path to the socket file. String unix-socket=/tmp
application-name Optionally specify the application name. The name will show up in PostgreSQL logs for connections and operations made through libzdb. String application-name=My Application

 


Copyright © 2011 Tildeslash Ltd. All rights reserved.