Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TupAJ-0001VC-8B for pgsql-docs@arkaria.postgresql.org; Mon, 14 Jan 2013 18:53:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TupAI-0002rU-1Q for pgsql-docs@arkaria.postgresql.org; Mon, 14 Jan 2013 18:53:46 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TupAH-0002rM-6W for pgsql-docs@postgresql.org; Mon, 14 Jan 2013 18:53:45 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TupAF-0006D1-P9 for pgsql-docs@postgresql.org; Mon, 14 Jan 2013 18:53:44 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r0EIrdrp025792; Mon, 14 Jan 2013 13:53:39 -0500 (EST) From: Tom Lane To: Casey Allen Shobe cc: Ian Lawrence Barwick , pgsql-docs@postgresql.org, pgsql-hackers@postgresql.org, Peter Eisentraut Subject: Re: [HACKERS] Re: Privileges for INFORMATION_SCHEMA.SCHEMATA (was Re: Small clarification in "34.41. schemata") In-reply-to: References: <11650.1357782995@sss.pgh.pa.us> Comments: In-reply-to Casey Allen Shobe message dated "Mon, 14 Jan 2013 12:49:32 -0500" Date: Mon, 14 Jan 2013 13:53:39 -0500 Message-ID: <25791.1358189619@sss.pgh.pa.us> 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 Casey Allen Shobe writes: > On Wed, Jan 9, 2013 at 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. > IMHO, schemata should follow the standard as it does today. Other > platforms have privileges on schemas as well, and this sort of thing seems > to fall into the same bucket as other platform compatibilities outside the > scope of what the standard thinks about, which means you use pg_catalog to > access that information rather than information_schema, which should be > expected to work consistently on all platforms that implement it. Meh. To me, standards compliance requires that if you have created a SQL-compliant database, you'd better see spec-compliant output from the information schema. As soon as you do something outside the standard (in this instance, grant some privileges on a schema), it becomes a judgment call whether and how that should affect what you see in the information schema. It may be that the current behavior of this view is actually the best thing, but a standards-compliance argument doesn't do anything to convince me. regards, tom lane -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs