From: Tom Lane <tgl@sss.pgh.pa.us>
To: Philippe Lang <philippe.lang@attiksystem.ch>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Client UI, ODBC, PG & permissions
Date: Thu, 25 Mar 2004 10:41:07 -0500
Message-ID: <11571.1080229267@sss.pgh.pa.us> (raw)
In-Reply-To: <6C0CF58A187DA5479245E0830AF84F42080280@poweredge.attiksystem.ch>
References: <6C0CF58A187DA5479245E0830AF84F42080280@poweredge.attiksystem.ch>
"Philippe Lang" <philippe.lang@attiksystem.ch> writes:
> How do you manage permissions in your applications? Is it possible to
> read the permissions a user has on a specific table from the client,
Sure. See has_table_privilege() and related functions:
http://www.postgresql.org/docs/7.4/static/functions-misc.html
I think there may be privilege info available from the
information_schema as well, which would be a better bet if you want to
preserve some semblance of database independence.
We don't currently support any per-column privileges, sorry.
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: tgl@sss.pgh.pa.us, philippe.lang@attiksystem.ch
Subject: Re: Client UI, ODBC, PG & permissions
In-Reply-To: <11571.1080229267@sss.pgh.pa.us>
References: <6C0CF58A187DA5479245E0830AF84F42080280@poweredge.attiksystem.ch> <11571.1080229267@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