Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 7B115B5DBE0 for ; Thu, 8 Sep 2011 10:14:36 -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 73778-02 for ; Thu, 8 Sep 2011 13:14:30 +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 A8C09B5D80A for ; Thu, 8 Sep 2011 10:14:29 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id p88DEQg08952; Thu, 8 Sep 2011 09:14:26 -0400 (EDT) From: Bruce Momjian Message-Id: <201109081314.p88DEQg08952@momjian.us> Subject: Re: createuser/dropuser username In-Reply-To: <7070.1315433223@sss.pgh.pa.us> To: Tom Lane Date: Thu, 8 Sep 2011 09:14:26 -0400 (EDT) CC: Susanne Ebrecht , Robert Haas , Grzegorz Szpetkowski , 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: 201109/28 X-Sequence-Number: 6949 Tom Lane wrote: > Bruce Momjian writes: > > Uh, I did some digging after this email report and found it does need > > some cleanup, which is done in the attached patch. > > > It removes quoting for table references in clusterdb and index/table > > references in reindexdb, > > Uh, surely that breaks things. Or did you miss my statement that the > current behavior is what is intended? > > > and adds a general documentation overview about > > when case is preserved and suggests quoting, and adds documentation > > where special quoting happens. > > I don't find the documentation changes to be improvements either. > Possibly instead of > > > ! Specifies the default tablespace for the database (double-quoted internally). > > you could do something like > > Specifies the default tablespace for the database. (This name > is not subject to case-folding.) Actually, that is inaccurate. When we call PQconnectdbParams() with username/database names, or call fmtId(), we are doing more than preserving case. We are also preserving whitespace and special characters. I can make the new text: (This name is processed as a double-quoted identifier.) -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +