Re: question on the information_schema

From: David Johnston <polobo(at)yahoo(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: question on the information_schema
Date: 2013-08-23 16:04:15
Message-ID: 1377273855209-5768404.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

raghu ram-4 wrote
>>
> If you are executing the SQL statement with "postgres" user
> [Superuser],then you will see all information related to all objects
> without any restrictions of the Ownership.
>
> If you are executing the SQL Statements with "saas" user
> [Non-Superuser],then you will see the table information as owner of "saas"
> user.

Per the documentation:

http://www.postgresql.org/docs/9.0/static/infoschema-columns.html

"Only those columns are shown that the current user has access to (by way of
being the owner or having some privilege)."

So the restriction is NOT based on ownership but visibility and any tables
created in the public schema are (by default) visible to all users and so
should show up in a information_schema.column query for all users as well.

I toss this out there for now but I have not been doing any kind of testing
for this thread so I'm just reporting my existing understanding and what is
shown in the documentation without verification.

David J.

--
View this message in context: http://postgresql.1045698.n5.nabble.com/question-on-the-information-schema-tp5768389p5768404.html
Sent from the PostgreSQL - admin mailing list archive at Nabble.com.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Scott Ribe 2013-08-24 15:14:23 Re: postgres crashes on insert in 40 different threads
Previous Message David Johnston 2013-08-23 15:53:30 Re: question on the information_schema