Re: BUG #2850: Cannot select from information_schema.schemat - Mailing list pgsql-bugs

From Bernd Helmle
Subject Re: BUG #2850: Cannot select from information_schema.schemat
Date
Msg-id 923D050A3FA285622BA1158D@imhotep.credativ.de
Whole thread Raw
In response to BUG #2850: Cannot select from information_schema.schemat  ("Tony Marston" <tony@marston-home.demon.co.uk>)
List pgsql-bugs
--On Donnerstag, Dezember 21, 2006 15:47:40 +0000 Tony Marston
<tony@marston-home.demon.co.uk> wrote:

> The fact that the SQL standard says that the schemata view is supposed to
> "Identify the schemata in a catalog that are owned by a given user" does
> not automatically mean that the information can *ONLY* be accessed by the
> owner. Any user should be able to see the schema to which they have
> access, owner or not.

The standard doesn't specify any given user, it specifies CURRENT_USER. Only
if CURRENT_USER is the owner of a schema (or CURRENT_USER inherits
ownership by membership) you are able (and allowed) to see the schema. While
I admit that this makes it hard to identify catalog schemata by an DBA via
the information_schema, the standard is quite clear here. I don't see any
ambiguity here....

If you need to go beyond what the standard allows, you have to use the
system
catalog.

--
  Thanks

                    Bernd

pgsql-bugs by date:

Previous
From: Stefan Kaltenbrunner
Date:
Subject: Re: BUG #2854: can't log out database system
Next
From: "Gurjeet Singh"
Date:
Subject: Re: Internal Error XXOO...Mission Critical