pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Permissions Query?
2+ messages / 2 participants
[nested] [flat]

* Permissions Query?
@ 2007-01-19 19:11  paallen@attglobal.net
  0 siblings, 1 reply; 2+ messages in thread

From: paallen@attglobal.net @ 2007-01-19 19:11 UTC (permalink / raw)
  To: pgsql-sql

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




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Permissions Query?
@ 2007-01-19 19:15  Andrew Sullivan <ajs@crankycanuck.ca>
  parent: paallen@attglobal.net
  0 siblings, 0 replies; 2+ messages in thread

From: Andrew Sullivan @ 2007-01-19 19:15 UTC (permalink / raw)
  To: pgsql-sql

On Fri, Jan 19, 2007 at 07:11:00PM +0000, paallen@attglobal.net wrote:
> 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?

Start here:

http://www.postgresql.org/docs/8.1/interactive/functions-info.html#FUNCTIONS-INFO-ACCESS-TABLE

A
-- 
Andrew Sullivan  | ajs@crankycanuck.ca
When my information changes, I alter my conclusions.  What do you do sir?
		--attr. John Maynard Keynes



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2007-01-19 19:15 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-01-19 19:11 Permissions Query? paallen@attglobal.net
2007-01-19 19:15 ` Andrew Sullivan <ajs@crankycanuck.ca>

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