Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id C0EC8B5DBD8 for ; Tue, 11 Oct 2011 12:11:42 -0300 (ADT) 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 69607-03 for ; Tue, 11 Oct 2011 15:11:36 +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 140CDB5DBC7 for ; Tue, 11 Oct 2011 12:11:35 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id p9BFBYX17467; Tue, 11 Oct 2011 11:11:34 -0400 (EDT) From: Bruce Momjian Message-Id: <201110111511.p9BFBYX17467@momjian.us> Subject: Re: Discrepancy in 9.1 Documentation on CREATE ROLE In-Reply-To: To: Robert Haas Date: Tue, 11 Oct 2011 11:11: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/24 X-Sequence-Number: 7024 Robert Haas wrote: > On Tue, Oct 11, 2011 at 10:44 AM, Bruce Momjian wrote: > > 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. > > They shouldn't appear in any non-ancient dumps, and we don't guarantee > that those will work anyway: you're suppose to pg_dump with the new > version of pg_dump, running against the old cluster. Well, we have pg_dump support for 7.3 dumps (2002), so I don't see a reason to remove that capability. Now, if we want to remove that support, then it would make sense to remove the rest, but I think people are still assuming old dumps can load, especially if they have the dump but not the 7.3 server installed. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +