granted select works in psql but not via jdbc - Mailing list pgsql-jdbc

From J.
Subject granted select works in psql but not via jdbc
Date
Msg-id 20060531162140.55263.qmail@web54204.mail.yahoo.com
Whole thread Raw
Responses Re: granted select works in psql but not via jdbc  (Euler Taveira de Oliveira <euler@timbira.com>)
List pgsql-jdbc
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;

then any member of the role db_mid_level_admin can query db_roles using psql, but when I try it in jdbc it throws an exception (permission denied for relation pg_roles).

Same user, different behavior in psql vs jdbc.  I can't make this admin level superuser because then they'd have access to some stuff they shouldn't.  Thanks.

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

pgsql-jdbc by date:

Previous
From: Andrew Sullivan
Date:
Subject: Re: Driver for Postgres 7.2
Next
From: "Charles Curi"
Date:
Subject: Fields