Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 19DAF1337990 for ; Fri, 11 Mar 2011 11:05:09 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 34951-07 for ; Fri, 11 Mar 2011 15:05:01 +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 72B00133616B for ; Fri, 11 Mar 2011 11:05:01 -0400 (AST) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id p2BF51E07523; Fri, 11 Mar 2011 10:05:01 -0500 (EST) From: Bruce Momjian Message-Id: <201103111505.p2BF51E07523@momjian.us> Subject: Re: BUG #5814: documentation bug In-Reply-To: <1299855267-sup-1399@alvh.no-ip.org> To: Alvaro Herrera Date: Fri, 11 Mar 2011 10:05:01 -0500 (EST) CC: Robert Haas , Antje Petersen , pgsql-bugs 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/198 X-Sequence-Number: 29708 Alvaro Herrera wrote: > Excerpts from Bruce Momjian's message of vie mar 11 11:44:52 -0300 2011: > > Robert Haas wrote: > > > On Thu, Mar 10, 2011 at 10:45 PM, Bruce Momjian wrote: > > > > Antje Petersen wrote: > > > >> > > > >> The following bug has been logged online: > > > >> > > > > >> According to the documentation > > > >> createuser --no-superuser and > > > >> createuser --no-createrole is the default. > > > >> This is not true. The default is to be asked > > > >> Shall the new role be a superuser? (y/n) > > > >> Shall the new role be allowed to create more new roles? (y/n) > > > > > > > > Sorry for the late reply. ?If you press "enter", "no" is the default. > > > > > > That's a lame answer. Surely this is a documentation bug. > > > > Well, what do you suggest? I see no other way to specify the default > > for pressing . I know I just press at those prompts. > > He's saying that the documentation should say "if no options are passed, > you will be asked". > > While at it, I think the default option should be capitalized: > Shall the new role be allowed to create more new roles? (y/N) > That way, the user knows what will happen, without having to look it up > in the docs. This capitalization of the default option is pretty common > nowadays. Oops, I was wrong. There is no default. It keeps prompting if I press . Also, it seems this was addressed in January: commit af84bee43e356866dc46c95ae5bf77996a8237ff Author: Robert Haas Date: Sat Jan 8 06:12:05 2011 -0500 Remove bogus claims regarding createuser defaults. Josh Kupershmidt -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +