From 665066f3944495bfaf661e23f82d978d9a0dc2c6 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 25 Nov 2001 01:11:36 +0000 Subject: Further work on postmaster and postgres reference pages. --- doc/src/sgml/ref/postgres-ref.sgml | 65 +++++++++++++++++++++++++++++++------- 1 file changed, 53 insertions(+), 12 deletions(-) (limited to 'doc/src/sgml/ref/postgres-ref.sgml') diff --git a/doc/src/sgml/ref/postgres-ref.sgml b/doc/src/sgml/ref/postgres-ref.sgml index 9c4266d7d62..00207b20f79 100644 --- a/doc/src/sgml/ref/postgres-ref.sgml +++ b/doc/src/sgml/ref/postgres-ref.sgml @@ -1,5 +1,5 @@ @@ -43,6 +43,7 @@ Postgres documentation -S sort-mem -W seconds + --name=value database @@ -67,6 +68,7 @@ Postgres documentation -S sort-mem -v protocol-version -W seconds + --name=value @@ -87,8 +89,9 @@ Postgres documentation conceptually, since both postmaster and postgres are in fact the same program); it should not be invoked directly this way. The first form invokes - the server directly in interactive mode. The primary use for this - mode is for bootstrapping by . + the server directly in interactive single-user mode. The primary use + for this mode is during bootstrapping by . + Sometimes it is used for debugging or disaster recovery. @@ -138,8 +141,8 @@ Postgres documentation The options , , , , , - and have the same meaning as with the . + , and @@ -163,12 +166,10 @@ Postgres documentation Sends all debugging and error output to filename. - If the backend is running under the postmaster, - error messages are still sent to the frontend process as well as to - filename, - but debugging output is sent to the controlling tty of the - postmaster - (since only one file descriptor can be sent to an actual file). + If the backend is running under the + postmaster, this option is ignored, + and the stderr inherited from the + postmaster is used. @@ -177,7 +178,7 @@ Postgres documentation -P - Ignore system indexes to scan/update system tuples. The + Ignore system indexes while scanning/updating system tuples. The REINDEX command for system tables/indexes requires this option to be used. @@ -350,6 +351,46 @@ Postgres documentation + + Usage + + + Start a standalone backend with a command like + +postgres -D $PGDATA other-options my_database + + Provide the correct path to the database area with + + + Normally, the standalone backend treats newline as the command + entry terminator; there is no intelligence about semicolons, + as there is in psql. To continue a command + across multiple lines, you must type backslash just before each + newline except the last one. + + + + But if you use the + + + The standalone backend does not have readline input processing + (no command history, for example). + + + + To quit the backend, type EOF (control-D, usually). If you've + used + + + See Also -- cgit v1.2.3