Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 7EA816338A4 for ; Fri, 19 Feb 2010 10:37:59 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 31927-03 for ; Fri, 19 Feb 2010 14:37:45 +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 100A36331E4 for ; Fri, 19 Feb 2010 10:37:45 -0400 (AST) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id o1JEbfP20830; Fri, 19 Feb 2010 09:37:41 -0500 (EST) From: Bruce Momjian Message-Id: <201002191437.o1JEbfP20830@momjian.us> Subject: Re: "--version" flag missing from man pages In-Reply-To: <4ec1cf760912181943j58d39cc6x18f0c282ec56fcd0@mail.gmail.com> To: Josh Kupershmidt Date: Fri, 19 Feb 2010 09:37:41 -0500 (EST) CC: pgsql-docs@postgresql.org X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="ELM1266590261-5925-5_" Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=-10 required=5 tests=BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 201002/14 X-Sequence-Number: 5330 --ELM1266590261-5925-5_ Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" Josh Kupershmidt wrote: > I noticed that the "--version" flag is not in the man pages for pg_dump, > pg_dumpall, initdb, and various other commands. Out of all the files in > ./doc/src/sgml/ref/ , I can see only these three which have "--version" > listed: > > josh@hades:~/src/postgresql/doc/src/sgml/ref$ grep "\-\-version" *.sgml > ecpg-ref.sgml: > pg_config-ref.sgml: > psql-ref.sgml: > > Yet many other commands support a -V or --version flag which isn't in their > man pages. > > $ initdb --version > initdb (PostgreSQL) 8.5devel Interesting, I never noticed they were not documented. I have applied the attached patch which adds documentation for those options. These new documentation changes will appear in Postgres 9.0 -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + If your life is a hard drive, Christ can be your backup. + --ELM1266590261-5925-5_ Content-Transfer-Encoding: 7bit Content-Type: text/x-diff Content-Disposition: inline; filename="/rtmp/diff" Index: doc/src/sgml/ref/clusterdb.sgml =================================================================== RCS file: /cvsroot/pgsql/doc/src/sgml/ref/clusterdb.sgml,v retrieving revision 1.26 diff -c -c -r1.26 clusterdb.sgml *** doc/src/sgml/ref/clusterdb.sgml 19 Feb 2010 03:50:03 -0000 1.26 --- doc/src/sgml/ref/clusterdb.sgml 19 Feb 2010 14:35:18 -0000 *************** *** 129,134 **** --- 129,155 ---- + + + + + + Print the clusterdb version and exit. + + + + + + + + + + Show help about clusterdb command line + arguments, and exit. + + + + Index: doc/src/sgml/ref/createdb.sgml =================================================================== RCS file: /cvsroot/pgsql/doc/src/sgml/ref/createdb.sgml,v retrieving revision 1.50 diff -c -c -r1.50 createdb.sgml *** doc/src/sgml/ref/createdb.sgml 19 Feb 2010 03:50:03 -0000 1.50 --- doc/src/sgml/ref/createdb.sgml 19 Feb 2010 14:35:18 -0000 *************** *** 168,173 **** --- 168,195 ---- + + + + + + + Print the createdb version and exit. + + + + + + + + + + Show help about createdb command line + arguments, and exit. + + + + Index: doc/src/sgml/ref/createlang.sgml =================================================================== RCS file: /cvsroot/pgsql/doc/src/sgml/ref/createlang.sgml,v retrieving revision 1.44 diff -c -c -r1.44 createlang.sgml *** doc/src/sgml/ref/createlang.sgml 19 Feb 2010 03:50:03 -0000 1.44 --- doc/src/sgml/ref/createlang.sgml 19 Feb 2010 14:35:18 -0000 *************** *** 96,101 **** --- 96,122 ---- + + + + + + Print the createlang version and exit. + + + + + + + + + + Show help about createlang command line + arguments, and exit. + + + + Index: doc/src/sgml/ref/createuser.sgml =================================================================== RCS file: /cvsroot/pgsql/doc/src/sgml/ref/createuser.sgml,v retrieving revision 1.53 diff -c -c -r1.53 createuser.sgml *** doc/src/sgml/ref/createuser.sgml 19 Feb 2010 03:50:03 -0000 1.53 --- doc/src/sgml/ref/createuser.sgml 19 Feb 2010 14:35:18 -0000 *************** *** 243,248 **** --- 243,270 ---- + + + + + + + Print the createuser version and exit. + + + + + + + + + + Show help about createuser command line + arguments, and exit. + + + + Index: doc/src/sgml/ref/dropdb.sgml =================================================================== RCS file: /cvsroot/pgsql/doc/src/sgml/ref/dropdb.sgml,v retrieving revision 1.36 diff -c -c -r1.36 dropdb.sgml *** doc/src/sgml/ref/dropdb.sgml 19 Feb 2010 03:50:03 -0000 1.36 --- doc/src/sgml/ref/dropdb.sgml 19 Feb 2010 14:35:18 -0000 *************** *** 86,92 **** --- 86,115 ---- + + + + + + + Print the dropdb version and exit. + + + + + + + + + + Show help about dropdb command line + arguments, and exit. + + + + + Index: doc/src/sgml/ref/droplang.sgml =================================================================== RCS file: /cvsroot/pgsql/doc/src/sgml/ref/droplang.sgml,v retrieving revision 1.32 diff -c -c -r1.32 droplang.sgml *** doc/src/sgml/ref/droplang.sgml 26 Feb 2009 16:02:37 -0000 1.32 --- doc/src/sgml/ref/droplang.sgml 19 Feb 2010 14:35:18 -0000 *************** *** 104,109 **** --- 104,130 ---- + + + + + + Print the droplang version and exit. + + + + + + + + + + Show help about droplang command line + arguments, and exit. + + + + Index: doc/src/sgml/ref/dropuser.sgml =================================================================== RCS file: /cvsroot/pgsql/doc/src/sgml/ref/dropuser.sgml,v retrieving revision 1.41 diff -c -c -r1.41 dropuser.sgml *** doc/src/sgml/ref/dropuser.sgml 19 Feb 2010 03:50:03 -0000 1.41 --- doc/src/sgml/ref/dropuser.sgml 19 Feb 2010 14:35:18 -0000 *************** *** 88,93 **** --- 88,115 ---- + + + + + + + Print the dropuser version and exit. + + + + + + + + + + Show help about dropuser command line + arguments, and exit. + + + + Index: doc/src/sgml/ref/ecpg-ref.sgml =================================================================== RCS file: /cvsroot/pgsql/doc/src/sgml/ref/ecpg-ref.sgml,v retrieving revision 1.33 diff -c -c -r1.33 ecpg-ref.sgml *** doc/src/sgml/ref/ecpg-ref.sgml 19 Feb 2010 03:50:03 -0000 1.33 --- doc/src/sgml/ref/ecpg-ref.sgml 19 Feb 2010 14:35:18 -0000 *************** *** 159,186 **** Print additional information including the version and the ! include path. ! ! Show a brief summary of the command usage, then exit. ! ! Output version information, then exit. --- 159,188 ---- Print additional information including the version and the ! "include" path. ! ! Print the ecpg version and exit. ! ! Show help about ecpg command line ! arguments, and exit. + Index: doc/src/sgml/ref/initdb.sgml =================================================================== RCS file: /cvsroot/pgsql/doc/src/sgml/ref/initdb.sgml,v retrieving revision 1.45 diff -c -c -r1.45 initdb.sgml *** doc/src/sgml/ref/initdb.sgml 10 Dec 2009 06:32:28 -0000 1.45 --- doc/src/sgml/ref/initdb.sgml 19 Feb 2010 14:35:18 -0000 *************** *** 280,285 **** --- 280,307 ---- + + + + + + + Print the initdb version and exit. + + + + + + + + + + Show help about initdb command line + arguments, and exit. + + + + Index: doc/src/sgml/ref/pg_controldata.sgml =================================================================== RCS file: /cvsroot/pgsql/doc/src/sgml/ref/pg_controldata.sgml,v retrieving revision 1.11 diff -c -c -r1.11 pg_controldata.sgml *** doc/src/sgml/ref/pg_controldata.sgml 23 Sep 2008 09:20:35 -0000 1.11 --- doc/src/sgml/ref/pg_controldata.sgml 19 Feb 2010 14:35:18 -0000 *************** *** 40,46 **** This utility can only be run by the user who initialized the cluster because it requires read access to the data directory. You can specify the data directory on the command line, or use ! the environment variable PGDATA. --- 40,50 ---- This utility can only be run by the user who initialized the cluster because it requires read access to the data directory. You can specify the data directory on the command line, or use ! the environment variable PGDATA. This utility supports the options ! -V and --version, which print the ! pg_controldata version and exit. It also ! supports options -? and --help, which output the ! supported arguments. Index: doc/src/sgml/ref/pg_dump.sgml =================================================================== RCS file: /cvsroot/pgsql/doc/src/sgml/ref/pg_dump.sgml,v retrieving revision 1.115 diff -c -c -r1.115 pg_dump.sgml *** doc/src/sgml/ref/pg_dump.sgml 19 Feb 2010 03:50:03 -0000 1.115 --- doc/src/sgml/ref/pg_dump.sgml 19 Feb 2010 14:35:18 -0000 *************** *** 484,489 **** --- 484,499 ---- + + + + + Print the pg_dump version and exit. + + + + + *************** *** 645,650 **** --- 655,672 ---- + + + + + + + Show help about pg_dump command line + arguments, and exit. + + + + Index: doc/src/sgml/ref/pg_dumpall.sgml =================================================================== RCS file: /cvsroot/pgsql/doc/src/sgml/ref/pg_dumpall.sgml,v retrieving revision 1.80 diff -c -c -r1.80 pg_dumpall.sgml *** doc/src/sgml/ref/pg_dumpall.sgml 19 Feb 2010 03:50:03 -0000 1.80 --- doc/src/sgml/ref/pg_dumpall.sgml 19 Feb 2010 14:35:18 -0000 *************** *** 249,254 **** --- 249,264 ---- + + + + + Print the pg_dumpall version and exit. + + + + + *************** *** 346,351 **** --- 356,372 ---- + + + + + + Show help about pg_dumpall command line + arguments, and exit. + + + + Index: doc/src/sgml/ref/pg_resetxlog.sgml =================================================================== RCS file: /cvsroot/pgsql/doc/src/sgml/ref/pg_resetxlog.sgml,v retrieving revision 1.21 diff -c -c -r1.21 pg_resetxlog.sgml *** doc/src/sgml/ref/pg_resetxlog.sgml 23 Sep 2008 09:20:35 -0000 1.21 --- doc/src/sgml/ref/pg_resetxlog.sgml 19 Feb 2010 14:35:18 -0000 *************** *** 178,183 **** --- 178,191 ---- This is mainly a debugging tool, but can be useful as a sanity check before allowing pg_resetxlog to proceed for real. + + + The -V and --version options print + the pg_resetxlog version and exit. The + options -? and --help show supported arguments, + and exit. + + Index: doc/src/sgml/ref/pg_restore.sgml =================================================================== RCS file: /cvsroot/pgsql/doc/src/sgml/ref/pg_restore.sgml,v retrieving revision 1.83 diff -c -c -r1.83 pg_restore.sgml *** doc/src/sgml/ref/pg_restore.sgml 19 Feb 2010 03:50:03 -0000 1.83 --- doc/src/sgml/ref/pg_restore.sgml 19 Feb 2010 14:35:18 -0000 *************** *** 403,408 **** --- 403,418 ---- + + + + + Print the pg_restore version and exit. + + + + + *************** *** 484,489 **** --- 494,510 ---- + + + + + + Show help about pg_restore command line + arguments, and exit. + + + + Index: doc/src/sgml/ref/psql-ref.sgml =================================================================== RCS file: /cvsroot/pgsql/doc/src/sgml/ref/psql-ref.sgml,v retrieving revision 1.238 diff -c -c -r1.238 psql-ref.sgml *** doc/src/sgml/ref/psql-ref.sgml 19 Feb 2010 03:50:03 -0000 1.238 --- doc/src/sgml/ref/psql-ref.sgml 19 Feb 2010 14:35:22 -0000 *************** *** 514,519 **** --- 514,520 ---- + Index: doc/src/sgml/ref/reindexdb.sgml =================================================================== RCS file: /cvsroot/pgsql/doc/src/sgml/ref/reindexdb.sgml,v retrieving revision 1.8 diff -c -c -r1.8 reindexdb.sgml *** doc/src/sgml/ref/reindexdb.sgml 26 Feb 2009 16:02:37 -0000 1.8 --- doc/src/sgml/ref/reindexdb.sgml 19 Feb 2010 14:35:22 -0000 *************** *** 139,145 **** ! --- 139,168 ---- ! ! ! ! ! ! ! Print the reindexdb version and exit. ! ! ! ! ! ! ! ! ! ! Show help about reindexdb command line ! arguments, and exit. ! ! ! ! ! ! Index: doc/src/sgml/ref/vacuumdb.sgml =================================================================== RCS file: /cvsroot/pgsql/doc/src/sgml/ref/vacuumdb.sgml,v retrieving revision 1.51 diff -c -c -r1.51 vacuumdb.sgml *** doc/src/sgml/ref/vacuumdb.sgml 19 Feb 2010 03:50:03 -0000 1.51 --- doc/src/sgml/ref/vacuumdb.sgml 19 Feb 2010 14:35:22 -0000 *************** *** 176,181 **** --- 176,191 ---- + + + + + Print the vacuumdb version and exit. + + + + + *************** *** 185,190 **** --- 195,211 ---- + + + + + + Show help about vacuumdb command line + arguments, and exit. + + + + --ELM1266590261-5925-5_--