Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 3CED4B5DBDE for ; Thu, 19 May 2011 17:15:34 -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 62534-04 for ; Thu, 19 May 2011 20:15:26 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-yi0-f46.google.com (mail-yi0-f46.google.com [209.85.218.46]) by mail.postgresql.org (Postfix) with ESMTP id 46A30B5DBC1 for ; Thu, 19 May 2011 17:15:26 -0300 (ADT) Received: by yia27 with SMTP id 27so1070595yia.19 for ; Thu, 19 May 2011 13:15:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=8sblj9W05/ofb0GyDBFdtVVq/JdvfyLgONdaizUcsDM=; b=M5ueA+lXLrlry+23++GAPnTkkicYMWRDfkX16dmRtCSUFmG1Yk19Pbjz5CJDu+jFiY Pt6E9Wa/anby7FnH5GDAD0JTaRCXH8Psg3k5G0D1zgITbzuir/JXgugIxq2Eaaw3im8E JexKBL1DM+PcCAbCx4VskzA5nwTydjuESsL8w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=AQVKHCuJ/iV4ZglR9Ld1j4LW5Qfe5DyiExqMI9qyWpV0AJyOauJu3oCHDKub9/WW+B nLVtd7wdoGJawjUhG9JVXwx3eNuroGg9FN+HMuUL9O9ShWh+wFpqoJ6XI+7RMl98rSaF SxzbKqN4wTHvILXSY3Jwg+JFUgXY5mo1c7diY= MIME-Version: 1.0 Received: by 10.236.135.132 with SMTP id u4mr4326063yhi.340.1305836123177; Thu, 19 May 2011 13:15:23 -0700 (PDT) Received: by 10.236.105.180 with HTTP; Thu, 19 May 2011 13:15:23 -0700 (PDT) In-Reply-To: References: Date: Thu, 19 May 2011 16:15:23 -0400 Message-ID: Subject: Re: createuser/dropuser username From: Robert Haas To: Grzegorz Szpetkowski Cc: pgsql-docs@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.898 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RFC_ABUSE_POST=0.001 X-Spam-Level: X-Archive-Number: 201105/56 X-Sequence-Number: 6731 On Wed, May 4, 2011 at 12:05 PM, Grzegorz Szpetkowski wrote: > Hi, > > I think that createuser/drouser reference documentation could be > enhanced for username param. There is: > > "createuser is a wrapper around the SQL command CREATE ROLE. There is > no effective difference between creating users via this utility and > via other methods for accessing the server." > > http://www.postgresql.org/docs/9.0/static/app-createuser.html > http://www.postgresql.org/docs/9.0/static/app-dropuser.html > > But createuser and dropuser wrappers in some cases are doing implicit > quoting (when CREATE ROLE is not), which I think is not fully known > and is undocumented here. For example: I'm not sure this really needs to be documented, but what exactly do you have in mind? -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company