Re: catalog view use to find DATABASE, LANGUAGE, TABLESPACE, SCHEMA, SEQUENCE privileges granted to user or role

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Louis Lam" <louis(dot)lam(at)guardium(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: catalog view use to find DATABASE, LANGUAGE, TABLESPACE, SCHEMA, SEQUENCE privileges granted to user or role
Date: 2009-06-03 18:15:26
Message-ID: 8327.1244052926@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Louis Lam" <louis(dot)lam(at)guardium(dot)com> writes:
> Since you know this are well. Do you know if there is some kind of
> records filtering use by PostgreSQL when selecting system objects? For
> example, I run this query by PostgreSQL user.

> select count(*) from information_schema.table_privileges;

The information_schema views filter out information about objects that
you don't have any privileges for. This is required by SQL spec.
It's a bit pointless, since anybody can look at the underlying catalogs,
but we make them follow spec anyway.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message pribram pribram 2009-06-03 18:29:30 Re: [GENERAL] lc_messages 8.3.7
Previous Message Erik Jones 2009-06-03 18:14:36 Re: warm standby with WAL shipping