Re: Privileges on information_schema - Mailing list pgsql-general

From Tom Lane
Subject Re: Privileges on information_schema
Date
Msg-id 15901.1191596194@sss.pgh.pa.us
Whole thread Raw
In response to Privileges on information_schema  ("Christian Rengstl" <Christian.Rengstl@klinik.uni-regensburg.de>)
List pgsql-general
"Christian Rengstl" <Christian.Rengstl@klinik.uni-regensburg.de> writes:
> whenever I execute the following query as admin I get all results, but
> as soon as I execute it as a less-privileged user the result is empty.
> SELECT * FROM information_schema.schemata

The SQL standard specifies that information_schema.schemata shows you
only schemas you own.  We are slightly laxer: we'll show you a schema
if you're a member of its owning role.

            regards, tom lane

pgsql-general by date:

Previous
From: "Scott Marlowe"
Date:
Subject: Re: Request: Anyone using bogus / "humorous" X-Message-Flag headers, could we please turn them off
Next
From: "A. Kretschmer"
Date:
Subject: Re: Request: Anyone using bogus / "humorous" X-Message-Flag headers, could we please turn them off