Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 33D4E1337B97 for ; Wed, 9 Mar 2011 12:09:08 -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 00177-02 for ; Wed, 9 Mar 2011 16:08:59 +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 6383D1337B93 for ; Wed, 9 Mar 2011 12:08:59 -0400 (AST) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id p29G8wC02127; Wed, 9 Mar 2011 11:08:58 -0500 (EST) From: Bruce Momjian Message-Id: <201103091608.p29G8wC02127@momjian.us> Subject: Re: Improve initdb and pg_controldata manual pages In-Reply-To: <25000.1299686268@sss.pgh.pa.us> To: Tom Lane Date: Wed, 9 Mar 2011 11:08:58 -0500 (EST) CC: PostgreSQL-documentation X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" 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/49 X-Sequence-Number: 6482 Tom Lane wrote: > Bruce Momjian writes: > > Well, looking at the detailed option list, it looks fine: > > > -D directory > > --pgdata=directory > > > It is only at the top where we see the problem because -D/--pgdata is a > > required argument and there are necessary spaces because we are showing > > both -D and --pgdata followed by a single argument. The original patch > > creator added '=' to be consistent with the syntax used below. > > > The bottom line is that there are many doc cases where this is used: > > > -D directory > > --pgdata directory > > > (no '='), so we should decide what we want in the docs. > > Right. I think it's fine if the syntax summary shows only those cases, > especially if the detailed option list shows that "=" is possible too. > What is important to me is that the summary not suggest illegal syntaxes > to people. Of course, the open question is do we prefer '=' to be used in the detailed descriptions. > > Does professionally produced documentation have as many inconsistencies? > > Hard to say. We have the problem that our docs were made by a lot of > people over a long period of time, so inconsistencies are a fact of > life. "Pro" documentation might be more consistent if it's written by a > smaller group of people over a shorter period of time... We probably have higher quality but lower consistency. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +