Re: BUG #1937: Parts of information_schema only accessible

From: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
To: Tony Marston <tony(at)marston-home(dot)demon(dot)co(dot)uk>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #1937: Parts of information_schema only accessible
Date: 2005-10-08 17:39:53
Message-ID: 20051008103425.J24275@megazone.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


On Sat, 8 Oct 2005, Tony Marston wrote:
> >
> > If there's two items:
> > "Function" with a description and "Definition" with a
> > definition, I think it's fairly ignorant to read the former
> > as overriding the latter. The latter *is* the definition.
> >
>
> Yes, but if the sample code disagrees with the description shouldn't you at
> least ask someone in authority which one is right? Shouldn't you ask WHY

It's not sample code. It's a definition. If a description doesn't match
a definition, generally the definition wins and it's the description
that's wrong.

> some parts of the information schema should only be accessible if you are
> the owner when 99% of the information schema does NOT have this restriction?

Why would this be any more consistent than anywhere else in SQL? And they
use this same restriction in ATTRIBUTES as well (but not in DOMAINS).

> Nowhere in any function descriptions does it say that the user must be the
> owner, so clearly whoever wrote the sample code made a minor mistake, and

Let's see, "Identify the assertions defined in this catalog that are owned
by a given user", "Identify the check constraints defined in this catalog
that are owned by a given user", "Identify the columns that are dependent
on a domain defined in this catalog and owned by a user", ...

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2005-10-08 17:58:12 Re: [BUGS] BUG #1927: incorrect timestamp returned
Previous Message Peter Eisentraut 2005-10-08 17:27:05 Re: BUG #1937: Parts of information_schema only accessible to owner