Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id EE22FB5DBC5 for ; Mon, 12 Sep 2011 23:53:26 -0300 (ADT) 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 27761-10 for ; Tue, 13 Sep 2011 02:53:20 +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 188E5B5D91F for ; Mon, 12 Sep 2011 23:53:19 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id p8D2rFi20556; Mon, 12 Sep 2011 22:53:15 -0400 (EDT) From: Bruce Momjian Message-Id: <201109130253.p8D2rFi20556@momjian.us> Subject: Re: createuser/dropuser username In-Reply-To: <1315855149.19706.19.camel@vanquo.pezone.net> To: Peter Eisentraut Date: Mon, 12 Sep 2011 22:53:15 -0400 (EDT) CC: Tom Lane , Alvaro Herrera , Susanne Ebrecht , Robert Haas , Grzegorz Szpetkowski , pgsql-docs 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: 201109/44 X-Sequence-Number: 6965 Peter Eisentraut wrote: > On fre, 2011-09-09 at 19:48 -0400, Bruce Momjian wrote: > > ! Specifies the default tablespace for the database. (This name > > ! is processed as a double-quoted identifier.) > > I don't find this wording particularly useful. What does it mean? The > imaginary double quotes are stripped off? My original wording said that the identifier is processed with double-quotes internally. Is that better? > The advantage of using the shell tools is that you are not affected by > the oddities of SQL syntax, so don't introduce references to SQL syntax > where it doesn't need to be. Just say, the names are used as is. Or > just say nothing, because nothing happens. We have to say something because the section description says only user/db names are double-quoted, execept where documented. > > ! Specifies the name of the procedural language to be > > ! installed. (This name is lower-cased.) > > Maybe an explanation why would be in order here. I frankly have no idea why. > > + > > + When specified on the command line, user and databases names have > > + their case preserved — the presence of spaces or special > > + characters might require quoting. Table names and other identifiers > > + do not have their case preserved, except where documented, and > > + might require quoting. > > + > > What kind of quoting might be required? Double or single-quoting, and I don't know about Windows, except I know is supports double-quoting. Do we really want to get into that? -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +