pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feed From: David Johnston <polobo@yahoo.com>
To: pgsql-admin@postgresql.org
Subject: Re: question on the information_schema
Date: Fri, 23 Aug 2013 09:04:15 -0700 (PDT)
Message-ID: <1377273855209-5768404.post@n5.nabble.com> (raw )
In-Reply-To: <CALnrrJTq7juaQHuBNV9rhrHmD3i=-==GO6vbgHtqCnHZwb1q9g@mail.gmail.com >
References: <52177664.5030908@gmail.com >
<1377270150147-5768391.post@n5.nabble.com >
<52177BC0.1060007@gmail.com >
<CAGrpgQ-uUWWxBc7iG1A7LVnomJ5artisotZFcaFtRHdhXCneug@mail.gmail.com >
<52178080.7010908@gmail.com >
<CALnrrJTq7juaQHuBNV9rhrHmD3i=-==GO6vbgHtqCnHZwb1q9g@mail.gmail.com >
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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.
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
view thread (12+ messages)
Message-ID: <1377273855209-5768404.post@n5.nabble.com>
Permalink: ../1377273855209-5768404.post@n5.nabble.com/
Also on: postgresql.org/message-id/1377273855209-5768404.post@n5.nabble.com
copy link · copy postgr.es
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: polobo@yahoo.com
Subject: Re: question on the information_schema
In-Reply-To: <1377273855209-5768404.post@n5.nabble.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox