diff --git a/doc/src/sgml/ref/allfiles.sgml b/doc/src/sgml/ref/allfiles.sgml new file mode 100644 index df84054..01810ab *** a/doc/src/sgml/ref/allfiles.sgml --- b/doc/src/sgml/ref/allfiles.sgml *************** Complete list of usable sgml source file *** 178,183 **** --- 178,184 ---- + diff --git a/doc/src/sgml/ref/pingdb.sgml b/doc/src/sgml/ref/pingdb.sgml new file mode 100644 index ...0ce4d01 *** a/doc/src/sgml/ref/pingdb.sgml --- b/doc/src/sgml/ref/pingdb.sgml *************** *** 0 **** --- 1,188 ---- + + + + + pingdb + 1 + Application + + + + pingdb + checks the connection status of a PostgreSQL server + + + + pingdb + + + + + pingdb + connection-option + option + + + + + + Description + + pingdb is a utility for checking the connection + status of a PostgreSQL database server. The exit + status specifies the result of the connection check. + + + + + Options + + + + + + + + + Specifies the name of the database to connect to. + + + If this parameter contains an = sign or starts + with a valid URI prefix + (postgresql:// + or postgres://), it is treated as a + conninfo string. See for more information. + + + + + + + + + + Specifies the host name of the machine on which the + server is running. If the value begins + with a slash, it is used as the directory for the Unix-domain + socket. + + + + + + + + + + Specifies the TCP port or the local Unix-domain + socket file extension on which the server is listening for + connections. Defaults to the value of the PGPORT + environment variable or, if not set, to the port specified at + compile time, usually 5432. + + + + + + + + + + Connect to the database as the user username instead of the default. + + + + + + + + + + Enables verbose mode. Will output the result of the operation as well as the + connection parameters used. + + + + + + + + + + Print the pingdb version and exit. + + + + + + + + + + Show help about pingdb command line + arguments, and exit. + + + + + + + + Exit Status + + + pingdb returns 0 to the shell if the server + is accepting connections normally, 1 if the server is rejecting + connections (for example during startup), 2 if there was no response to the + connection attempt, and 3 if no attempt was made (for example due to invalid + parameters). + + + + + Environment + + + pingdb, like most other PostgreSQL + utilities, + also uses the environment variables supported by libpq + (see ). + + + + + Notes + + + The options + + + + Examples + + + Standard Usage: + + $ pingdb + $ echo $? + 0 + + + + + To run in verbose mode with connection parameters: + + $ pingdb -v -h localhost + localhost:5432 - Accepting Connections + + + + + + diff --git a/doc/src/sgml/reference.sgml b/doc/src/sgml/reference.sgml new file mode 100644 index 0872168..e0b6604 *** a/doc/src/sgml/reference.sgml --- b/doc/src/sgml/reference.sgml *************** *** 225,230 **** --- 225,231 ---- &pgDumpall; &pgReceivexlog; &pgRestore; + &pingdb; &psqlRef; &reindexdb; &vacuumdb;