From: Peter Eisentraut Date: Wed, 13 Jun 2012 10:41:25 +0000 (+0300) Subject: Improve documentation of postgres -C option X-Git-Tag: REL9_2_BETA3~106 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c0a6f9c84bedc745af2a3bf1dee5e2a4e79b46af;p=postgresql Improve documentation of postgres -C option Clarify help (s/return/print/), and explain that this option is for use by other programs, not for user-facing use (it does not print units). --- diff --git a/doc/src/sgml/ref/postgres-ref.sgml b/doc/src/sgml/ref/postgres-ref.sgml index 9869a1f526..d8e9825d13 100644 --- a/doc/src/sgml/ref/postgres-ref.sgml +++ b/doc/src/sgml/ref/postgres-ref.sgml @@ -144,13 +144,20 @@ PostgreSQL documentation - Returns the value of a named run-time parameter, and exits. + Prints the value of the named run-time parameter, and exits. (See the + + + This option is meant for other programs that interact with a server + instance, such as , to query configuration + parameter values. User-facing applications should instead use or the pg_settings view. + diff --git a/src/backend/main/main.c b/src/backend/main/main.c index a63ebe3d10..7203481a04 100644 --- a/src/backend/main/main.c +++ b/src/backend/main/main.c @@ -279,7 +279,7 @@ help(const char *progname) #endif printf(_(" -B NBUFFERS number of shared buffers\n")); printf(_(" -c NAME=VALUE set run-time parameter\n")); - printf(_(" -C NAME return run-time parameter\n")); + printf(_(" -C NAME print value of run-time parameter, then exit\n")); printf(_(" -d 1-5 debugging level\n")); printf(_(" -D DATADIR database directory\n")); printf(_(" -e use European date input format (DMY)\n"));