X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 539E19FA621 for ; Wed, 31 May 2006 20:40:39 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 93271-07 for ; Wed, 31 May 2006 20:40:35 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from r5.myhostcenter.com (r5.myhostcenter.com [72.36.156.24]) by postgresql.org (Postfix) with ESMTP id 5956C9FA5EA for ; Wed, 31 May 2006 20:40:35 -0300 (ADT) Received: from 201-34-49-140.gnace702.dsl.brasiltelecom.net.br ([201.34.49.140] helo=timbira.com) by r5.myhostcenter.com with esmtpa (Exim 4.52) id 1FlaIo-0005fV-TN; Wed, 31 May 2006 19:40:39 -0400 Received: by timbira.com (nbSMTP-1.01-cvs) for uid 1000 euler@timbira.com; Wed, 31 May 2006 20:42:26 -0300 (BRT) Date: Wed, 31 May 2006 20:42:20 -0300 From: Euler Taveira de Oliveira To: "J." Cc: pgsql-jdbc@postgresql.org Subject: Re: granted select works in psql but not via jdbc Message-ID: <20060531234220.GC1436@timbira.com> References: <20060531162140.55263.qmail@web54204.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060531162140.55263.qmail@web54204.mail.yahoo.com> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - r5.myhostcenter.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - timbira.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/151 X-Sequence-Number: 15279 J. wrote: > I'm trying to set up a system where users will be limited based on their access. To do this I'm querying db_roles and if an exception is thrown, they're not a db admin. The problem is that I've done this: > > grant select on pg_roles to db_mid_level_admin; ^^^^^^^^^ Wouldn't it be db_roles? -- Euler Taveira de Oliveira http://www.timbira.com/