Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id D91F91337B9D for ; Tue, 8 Mar 2011 12:01:07 -0400 (AST) 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 37646-03 for ; Tue, 8 Mar 2011 16:01:00 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id 8D8811337B82 for ; Tue, 8 Mar 2011 12:01:00 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id 809FC34804B; Tue, 8 Mar 2011 08:00:59 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at commandprompt.com Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5mIkSxgemmAJ; Tue, 8 Mar 2011 08:00:57 -0800 (PST) Received: from perhan.alvh.no-ip.org (unknown [190.95.20.220]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id 27DB2348048; Tue, 8 Mar 2011 08:00:15 -0800 (PST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 711026E572; Tue, 8 Mar 2011 13:00:12 -0300 (CLST) Content-Type: text/plain; charset=UTF-8 Cc: pgsql-bugs Subject: Re: CREATEROLE does not permit commenting on newly-created roles From: Alvaro Herrera To: Euler Taveira de Oliveira In-reply-to: <4D75B945.7040304@timbira.com> References: <4D75B945.7040304@timbira.com> Date: Tue, 08 Mar 2011 13:00:12 -0300 Message-Id: <1299599930-sup-5129@alvh.no-ip.org> User-Agent: Sup/git Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201103/153 X-Sequence-Number: 29663 Excerpts from Euler Taveira de Oliveira's message of mar mar 08 02:06:13 -0300 2011: > Em 07-03-2011 16:53, Owen Jacobson escreveu: > > psql:repro.sql:2: ERROR: must be member of role "commented_role" to > > comment upon it > > > This isn't a bug; let say it is a limitation (and a documented one [1]). > Unfortunately only the role, superuser or its members can add/drop comments. Maybe it would be good to have a COMMENT clause on the CREATE ROLE command. It would be inconsistent with the rest of the comment system, but this privilege problem is inconsistent too. -- Álvaro Herrera The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Development, 24x7 support