Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id D0066B5DBD8 for ; Tue, 11 Oct 2011 11:44:41 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 22245-01 for ; Tue, 11 Oct 2011 14:44:35 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from momjian.us (momjian.us [70.90.9.53]) by mail.postgresql.org (Postfix) with ESMTP id EF86CB5DBC7 for ; Tue, 11 Oct 2011 11:44:34 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id p9BEiYL14010; Tue, 11 Oct 2011 10:44:34 -0400 (EDT) From: Bruce Momjian Message-Id: <201110111444.p9BEiYL14010@momjian.us> Subject: Re: Discrepancy in 9.1 Documentation on CREATE ROLE In-Reply-To: To: Robert Haas Date: Tue, 11 Oct 2011 10:44:34 -0400 (EDT) CC: Ron Adams , pgsql-docs@postgresql.org 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=-2.404 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201110/22 X-Sequence-Number: 7022 Robert Haas wrote: > On Thu, Oct 6, 2011 at 10:48 PM, Ron Adams wrote: > > The help for LOGIN/NOLOGIN at > > http://www.postgresql.org/docs/9.1/static/sql-createrole.html: "...NOLOGIN > > is the default, except when CREATE ROLE is invoked through its alternative > > spelling CREATE USER." The help for CREATE USER: "These clauses are an > > obsolete, but still accepted, spelling of SUPERUSER and NOSUPERUSER. Note > > that they are not equivalent to CREATEROLE as one might naively expect!" Eh? > > OK, brace yourself... > > You're mixing up the CREATEUSER option to the CREATE ROLE command with > the completely separate command CREATE USER. > > See http://www.postgresql.org/docs/9.1/static/sql-createuser.html > > I wonder if we ought to consider removing CREATEUSER and NOCREATEUSER > as synonyms for SUPERUSER and NOSUPERUSER. It looks like that change > was made in 8.1, which is now EOL. Agreed. They might still appear in dumps so maybe just remove documentation about them. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +