pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedInformation schema permissions
3+ messages / 2 participants
[nested] [flat]
* Information schema permissions
@ 2008-02-06 21:01 johnf <jfabiani@yolo.com>
0 siblings, 1 reply; 3+ messages in thread
From: johnf @ 2008-02-06 21:01 UTC (permalink / raw)
To: pgsql-sql
Assume a standard install on Linux (what ever that means). Would a normal
user have access to information schema? I have a front end written in python
that accesses tables and permissions are set based on roles. But I do
nothing with respect to the information schema view. I would like my program
to access the view. Would there be anything preventing a standard user
from 'SELECT' access?
--
John Fabiani
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Information schema permissions
@ 2008-02-06 23:37 Tom Lane <tgl@sss.pgh.pa.us>
parent: johnf <jfabiani@yolo.com>
0 siblings, 1 reply; 3+ messages in thread
From: Tom Lane @ 2008-02-06 23:37 UTC (permalink / raw)
To: johnf <jfabiani@yolo.com>; +Cc: pgsql-sql
johnf <jfabiani@yolo.com> writes:
> Assume a standard install on Linux (what ever that means). Would a normal
> user have access to information schema? I have a front end written in python
> that accesses tables and permissions are set based on roles. But I do
> nothing with respect to the information schema view. I would like my program
> to access the view. Would there be anything preventing a standard user
> from 'SELECT' access?
The information schema views are accessible to anyone, but be aware that
they show different sets of rows to different people --- you can only
see rows that are about tables that you have some access permissions
for. This might or might not confuse your app ...
regards, tom lane
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Information schema permissions
@ 2008-02-07 01:33 johnf <jfabiani@yolo.com>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 3+ messages in thread
From: johnf @ 2008-02-07 01:33 UTC (permalink / raw)
To: pgsql-sql
On Wednesday 06 February 2008 03:37:22 pm Tom Lane wrote:
> johnf <jfabiani@yolo.com> writes:
> > Assume a standard install on Linux (what ever that means). Would a
> > normal user have access to information schema? I have a front end
> > written in python that accesses tables and permissions are set based on
> > roles. But I do nothing with respect to the information schema view. I
> > would like my program to access the view. Would there be anything
> > preventing a standard user from 'SELECT' access?
>
> The information schema views are accessible to anyone, but be aware that
> they show different sets of rows to different people --- you can only
> see rows that are about tables that you have some access permissions
> for. This might or might not confuse your app ...
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
> http://archives.postgresql.org
Thanks. Actually it would benefit my app.
--
John Fabiani
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2008-02-07 01:33 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-02-06 21:01 Information schema permissions johnf <jfabiani@yolo.com>
2008-02-06 23:37 ` Tom Lane <tgl@sss.pgh.pa.us>
2008-02-07 01:33 ` johnf <jfabiani@yolo.com>
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