X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 682B0D1ED32 for ; Thu, 25 Mar 2004 15:41:10 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 51449-04 for ; Thu, 25 Mar 2004 11:41:12 -0400 (AST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 89E84D1ED31 for ; Thu, 25 Mar 2004 11:41:07 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i2PFf8Dq011572; Thu, 25 Mar 2004 10:41:08 -0500 (EST) To: "Philippe Lang" Cc: pgsql-odbc@postgresql.org Subject: Re: Client UI, ODBC, PG & permissions In-reply-to: <6C0CF58A187DA5479245E0830AF84F42080280@poweredge.attiksystem.ch> References: <6C0CF58A187DA5479245E0830AF84F42080280@poweredge.attiksystem.ch> Comments: In-reply-to "Philippe Lang" message dated "Thu, 25 Mar 2004 08:59:21 +0100" Date: Thu, 25 Mar 2004 10:41:07 -0500 Message-ID: <11571.1080229267@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/79 X-Sequence-Number: 3881 "Philippe Lang" 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