diff --git a/doc/src/sgml/ref/allfiles.sgml b/doc/src/sgml/ref/allfiles.sgml new file mode 100644 index df84054..6bbac8c *** a/doc/src/sgml/ref/allfiles.sgml --- b/doc/src/sgml/ref/allfiles.sgml *************** Complete list of usable sgml source file *** 175,180 **** --- 175,181 ---- + diff --git a/doc/src/sgml/ref/pg_ping-ref.sgml b/doc/src/sgml/ref/pg_ping-ref.sgml new file mode 100644 index ...ef77d16 *** a/doc/src/sgml/ref/pg_ping-ref.sgml --- b/doc/src/sgml/ref/pg_ping-ref.sgml *************** *** 0 **** --- 1,163 ---- + + + + + pg_ping + 1 + Application + + + + pg_ping + checks the connection status of a PostgreSQL server + + + + pg_ping + + + + + pg_ping + connection-option + option + + + + + + Description + + pg_ping 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 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 pg_ping version and exit. + + + + + + + + + + Show help about pg_ping command line + arguments, and exit. + + + + + + + + Exit Status + + + pg_ping returns 0 to the shell if the server + is accepting connections normally, 1 if the server is rejecting + conntections (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 + + + pg_ping, like most other PostgreSQL + utilities, + also uses the environment variables supported by libpq + (see ). + + + + + + Examples + + + Standard Usage: + + $ pg_ping + $ echo $? + 0 + + + + + To run in verbose mode with connection parameters: + + $ pg_ping -v -U postgres -h localhost + postgres@localhost:5432 - Accepting Conections + + + + + + diff --git a/doc/src/sgml/reference.sgml b/doc/src/sgml/reference.sgml new file mode 100644 index 0872168..7dcf5c9 *** a/doc/src/sgml/reference.sgml --- b/doc/src/sgml/reference.sgml *************** *** 247,252 **** --- 247,253 ---- &initdb; &pgControldata; &pgCtl; + &pgPing; &pgResetxlog; &postgres; &postmaster;