pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: johnf <jfabiani@yolo.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Information schema permissions
Date: Wed, 06 Feb 2008 18:37:22 -0500
Message-ID: <20040.1202341042@sss.pgh.pa.us> (raw)
In-Reply-To: <200802061301.35718.jfabiani@yolo.com>
References: <200802061301.35718.jfabiani@yolo.com>

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



view thread (3+ messages)  latest in thread

Message-ID: <20040.1202341042@sss.pgh.pa.us>
Permalink:  ../20040.1202341042@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/20040.1202341042@sss.pgh.pa.us

 · 

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-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jfabiani@yolo.com
  Subject: Re: Information schema permissions
  In-Reply-To: <20040.1202341042@sss.pgh.pa.us>

* 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