pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: paallen@attglobal.net
To: pgsql-sql@postgresql.org
Subject: Permissions Query?
Date: Fri, 19 Jan 2007 19:11:00 +0000
Message-ID: <20070119191100.9C6259FB487@postgresql.org> (raw)

Hi all,

still working on dabo a bit. Thanks for all the
earlier suggestions, they are working well.

I now want to know if the user/role has permision
to the schema.table.

How do I query to pgsql to know what permissions a
particular user has on the table?

I was thinking something along the lines of a
query that maybe produces results like this.

schematable    p_select p_delete p_all p_update ..
public.tbl1       1        0       0      0
public.tbl2       1        1       1      1
public.tbl        0        0       0      1

I am intersted to see if I can filter what
tables/schemas are avaliable to the user to avoid
error messages due to permissions.
thanks,
Phil




view thread (2+ messages)  latest in thread

Message-ID: <20070119191100.9C6259FB487@postgresql.org>
Permalink:  ../20070119191100.9C6259FB487@postgresql.org/
Also on:    postgresql.org/message-id/20070119191100.9C6259FB487@postgresql.org

 · 

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: paallen@attglobal.net
  Subject: Re: Permissions Query?
  In-Reply-To: <20070119191100.9C6259FB487@postgresql.org>

* 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