Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U114p-0006HA-92 for pgsql-docs@arkaria.postgresql.org; Thu, 31 Jan 2013 20:49:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U114o-000053-5A for pgsql-docs@arkaria.postgresql.org; Thu, 31 Jan 2013 20:49:42 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U114m-0008WP-TV; Thu, 31 Jan 2013 20:49:41 +0000 Received: from eisentraut.org ([85.214.91.16] helo=gattler.pezone.net) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U114l-00067s-Nu; Thu, 31 Jan 2013 20:49:40 +0000 Received: from jesse.mybdev.com (unknown [204.145.120.11]) by gattler.pezone.net (Postfix) with ESMTPSA id 19B6C5A8378; Thu, 31 Jan 2013 20:49:37 +0000 (UTC) Message-ID: <510AD8E0.9020005@gmx.net> Date: Thu, 31 Jan 2013 15:49:36 -0500 From: Peter Eisentraut User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: Tom Lane CC: Ian Lawrence Barwick , pgsql-docs@postgresql.org, pgsql-hackers@postgresql.org Subject: Re: Privileges for INFORMATION_SCHEMA.SCHEMATA (was Re: Small clarification in "34.41. schemata") References: <11650.1357782995@sss.pgh.pa.us> In-Reply-To: <11650.1357782995@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org On 1/9/13 8:56 PM, Tom Lane wrote: > However, it seems to me that this behavior is actually wrong for our > purposes, as it represents a too-literal reading of the spec. The SQL > standard has no concept of privileges on schemas, only ownership. > We do have privileges on schemas, so it seems to me that the consistent > thing would be for this view to show any schema that you either own or > have some privilege on. That is the test should be more like > > pg_has_role(n.nspowner, 'USAGE') > OR has_schema_privilege(n.oid, 'CREATE, USAGE') > > As things stand, a non-superuser won't see "public", "pg_catalog", > nor even "information_schema" itself in this view, which seems a > tad silly. I agree it would make sense to change this. -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs