Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id D0A671337B97 for ; Wed, 9 Mar 2011 10:20:48 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 44374-06 for ; Wed, 9 Mar 2011 14:20:41 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from momjian.us (momjian.us [70.90.9.53]) by mail.postgresql.org (Postfix) with ESMTP id 630171337B82 for ; Wed, 9 Mar 2011 10:20:40 -0400 (AST) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id p29EKe827660 for pgsql-docs@postgresql.org; Wed, 9 Mar 2011 09:20:40 -0500 (EST) From: Bruce Momjian Message-Id: <201103091420.p29EKe827660@momjian.us> Subject: Improve initdb and pg_controldata manual pages To: PostgreSQL-documentation Date: Wed, 9 Mar 2011 09:20:40 -0500 (EST) X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="ELM1299680440-27505-0_" Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201103/42 X-Sequence-Number: 6475 --ELM1299680440-27505-0_ Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" I have applied the attached patch to improve the initdb and pg_controldata manual pages. Patch from gabrielle . -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. + --ELM1299680440-27505-0_ Content-Transfer-Encoding: 7bit Content-Type: text/x-diff Content-Disposition: inline; filename="/rtmp/ref.diff" diff --git a/doc/src/sgml/ref/initdb.sgml b/doc/src/sgml/ref/initdb.sgml index 04f047b..e3fdebd 100644 *** a/doc/src/sgml/ref/initdb.sgml --- b/doc/src/sgml/ref/initdb.sgml *************** PostgreSQL documentation *** 22,30 **** initdb ! option ! --pgdata -D directory --- 22,30 ---- initdb ! option ! --pgdata= -D directory *************** PostgreSQL documentation *** 186,201 **** ! ! ! This option specifies the directory where the transaction log ! should be stored. - --- 186,199 ---- ! ! Makes initdb read the database superuser's password ! from a file. The first line of the file is taken as the password. *************** PostgreSQL documentation *** 226,239 **** ! ! Makes initdb read the database superuser's password ! from a file. The first line of the file is taken as the password. --- 224,239 ---- ! ! ! This option specifies the directory where the transaction log ! should be stored. + diff --git a/doc/src/sgml/ref/pg_controldata.sgml b/doc/src/sgml/ref/pg_controldata.sgml index 50b1909..d39b6e1 100644 *** a/doc/src/sgml/ref/pg_controldata.sgml --- b/doc/src/sgml/ref/pg_controldata.sgml *************** PostgreSQL documentation *** 22,27 **** --- 22,28 ---- pg_controldata + option datadir diff --git a/doc/src/sgml/ref/pg_ctl-ref.sgml b/doc/src/sgml/ref/pg_ctl-ref.sgml index 307f66b..608749f 100644 *** a/doc/src/sgml/ref/pg_ctl-ref.sgml --- b/doc/src/sgml/ref/pg_ctl-ref.sgml *************** PostgreSQL documentation *** 499,520 **** Starting the Server ! To start up a server: $ pg_ctl start ! An example of starting the server, and waiting until the server is ! accepting connection: $ pg_ctl -w start ! For a server using port 5433, and running without fsync, use: $ pg_ctl -o "-F -p 5433" start --- 499,520 ---- Starting the Server ! To start the server: $ pg_ctl start ! To start the server, waiting until the server is ! accepting connections: $ pg_ctl -w start ! To start the server using port 5433, and running without fsync, use: $ pg_ctl -o "-F -p 5433" start *************** PostgreSQL documentation *** 530,536 **** $ pg_ctl stop The option allows control over ! how the server shuts down. --- 530,539 ---- $ pg_ctl stop The option allows control over ! how the server shuts down: ! ! $ pg_ctl stop -m fast ! *************** PostgreSQL documentation *** 557,563 **** ! To restart using port 5433 and disable fsync upon restart: $ pg_ctl -o "-F -p 5433" restart --- 560,566 ---- ! To restart using port 5433, disabling fsync upon restart: $ pg_ctl -o "-F -p 5433" restart diff --git a/doc/src/sgml/ref/postgres-ref.sgml b/doc/src/sgml/ref/postgres-ref.sgml index 4437bf8..d332cba 100644 *** a/doc/src/sgml/ref/postgres-ref.sgml --- b/doc/src/sgml/ref/postgres-ref.sgml *************** PostgreSQL documentation *** 66,74 **** The postgres command can also be called in single-user mode. The primary use for this mode is during bootstrapping by . Sometimes it is used ! for debugging or disaster recovery (but note that running a single-user server is not truly suitable for debugging the server, since no ! realistic interprocess communication and locking will happen). When invoked in single-user mode from the shell, the user can enter queries and the results will be printed to the screen, but in a form that is more useful --- 66,74 ---- The postgres command can also be called in single-user mode. The primary use for this mode is during bootstrapping by . Sometimes it is used ! for debugging or disaster recovery; note that running a single-user server is not truly suitable for debugging the server, since no ! realistic interprocess communication and locking will happen. When invoked in single-user mode from the shell, the user can enter queries and the results will be printed to the screen, but in a form that is more useful *************** PostgreSQL documentation *** 413,420 **** ! Ignore system indexes when reading system tables (but still update ! the indexes when modifying the tables). This is useful when recovering from damaged system indexes. --- 413,420 ---- ! Ignore system indexes when reading system tables, but still update ! the indexes when modifying the tables. This is useful when recovering from damaged system indexes. *************** PostgreSQL documentation *** 763,775 **** To start postgres with a specific ! port: $ postgres -p 1234 ! This command will start up postgres ! communicating through the port 1234. In order to connect to this ! server using psql, you would need to run it as $ psql -p 1234 --- 763,773 ---- To start postgres with a specific ! port, e.g. 1234: $ postgres -p 1234 ! To connect to this server using psql, specify this port with the -p option: $ psql -p 1234 --ELM1299680440-27505-0_--