From 8cc55b1c0fbf9a2e01d14311716b59d19314126e Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Wed, 9 Mar 2011 09:18:44 -0500 Subject: [PATCH] Improve wording of initdb and pg_controldata manual pages. gabrielle --- doc/src/sgml/ref/initdb.sgml | 20 ++++++++++---------- doc/src/sgml/ref/pg_controldata.sgml | 1 + doc/src/sgml/ref/pg_ctl-ref.sgml | 15 +++++++++------ doc/src/sgml/ref/postgres-ref.sgml | 14 ++++++-------- 4 files changed, 26 insertions(+), 24 deletions(-) diff --git a/doc/src/sgml/ref/initdb.sgml b/doc/src/sgml/ref/initdb.sgml index 04f047b063..e3fdebdfd2 100644 --- a/doc/src/sgml/ref/initdb.sgml +++ b/doc/src/sgml/ref/initdb.sgml @@ -22,9 +22,9 @@ PostgreSQL documentation initdb - option + option - --pgdata + --pgdata= -D directory @@ -186,16 +186,14 @@ PostgreSQL documentation - - + - This option specifies the directory where the transaction log - should be stored. + Makes initdb read the database superuser's password + from a file. The first line of the file is taken as the password. - @@ -226,14 +224,16 @@ PostgreSQL documentation - + + - Makes initdb read the database superuser's password - from a file. The first line of the file is taken as the password. + 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 50b1909499..d39b6e18f8 100644 --- a/doc/src/sgml/ref/pg_controldata.sgml +++ b/doc/src/sgml/ref/pg_controldata.sgml @@ -22,6 +22,7 @@ PostgreSQL documentation 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 307f66b8da..608749f4c6 100644 --- a/doc/src/sgml/ref/pg_ctl-ref.sgml +++ b/doc/src/sgml/ref/pg_ctl-ref.sgml @@ -499,22 +499,22 @@ PostgreSQL documentation Starting the Server - To start up a server: + To start the server: $ pg_ctl start - An example of starting the server, and waiting until the server is - accepting connection: + To start the server, waiting until the server is + accepting connections: $ pg_ctl -w start - For a server using port 5433, and + To start the server using port 5433, and running without fsync, use: $ pg_ctl -o "-F -p 5433" start @@ -530,7 +530,10 @@ PostgreSQL documentation $ pg_ctl stop The option allows control over - how the server shuts down. + how the server shuts down: + +$ pg_ctl stop -m fast + @@ -557,7 +560,7 @@ PostgreSQL documentation - To restart using port 5433 and disable fsync upon restart: + 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 4437bf8997..d332cbae1d 100644 --- a/doc/src/sgml/ref/postgres-ref.sgml +++ b/doc/src/sgml/ref/postgres-ref.sgml @@ -66,9 +66,9 @@ PostgreSQL documentation 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 + 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). + 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 @@ -413,8 +413,8 @@ PostgreSQL documentation - Ignore system indexes when reading system tables (but still update - the indexes when modifying the tables). This is useful when + 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. @@ -763,13 +763,11 @@ PostgreSQL documentation To start postgres with a specific - port: + port, e.g. 1234: $ 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 + To connect to this server using psql, specify this port with the -p option: $ psql -p 1234 -- 2.11.0