Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 523A89FC089 for ; Wed, 20 Jun 2007 15:10:24 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 51157-02-2 for ; Wed, 20 Jun 2007 15:10:05 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from main2.mycybernet.net (main2.mycybernet.net [209.222.63.140]) by postgresql.org (Postfix) with ESMTP id CDAA39FBFD8 for ; Wed, 20 Jun 2007 15:10:01 -0300 (ADT) Received: from 227-54-222-209.mycybernet.net ([209.222.54.227] helo=phlogiston.dydns.org) by main2.mycybernet.net with esmtp (Exim 4.62) (envelope-from ) id 1I14cz-0001fM-0H for pgsql-admin@postgresql.org; Wed, 20 Jun 2007 14:10:01 -0400 Received: by phlogiston.dydns.org (Postfix, from userid 1000) id 986624050; Wed, 20 Jun 2007 14:09:55 -0400 (EDT) Date: Wed, 20 Jun 2007 14:09:55 -0400 From: Andrew Sullivan To: pgsql-admin@postgresql.org Subject: Re: Database User Message-ID: <20070620180955.GB743@phlogiston.dyndns.org> References: <60503AE0-0F0E-4E9A-A511-23F87C6F7485@indiana.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <60503AE0-0F0E-4E9A-A511-23F87C6F7485@indiana.edu> User-Agent: Mutt/1.5.9i X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/207 X-Sequence-Number: 25875 On Wed, Jun 20, 2007 at 11:59:11AM -0400, Carol Walter wrote: > I hope this is a simple request, but I'm a relative newby and I don't > know my way around the system tables yet. My user wants to know who > has privs to a specific database. How can I give her this info. You could use the access privilege functions documented in http://www.postgresql.org/docs/8.1/interactive/functions-info.html. Alternatively, the datacl column in the pg_database table might help you. A -- Andrew Sullivan | ajs@crankycanuck.ca The plural of anecdote is not data. --Roger Brinner