Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 8B57A1E16587 for ; Tue, 10 Jan 2012 20:26:14 -0400 (AST) Received: from news.hub.org ([200.46.204.72]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Rkm15-0004NQ-4y for pgsql-jdbc@postgresql.org; Wed, 11 Jan 2012 00:26:13 +0000 Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.14.4/8.14.4) with ESMTP id q0B0PtT9078617 for ; Tue, 10 Jan 2012 20:25:55 -0400 (AST) (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.14.4/8.14.4/Submit) id q0B0HULP072303 for pgsql-jdbc@postgresql.org; Tue, 10 Jan 2012 20:17:30 -0400 (AST) (envelope-from news) From: Joseph Shraibman X-Newsgroups: pgsql.interfaces.jdbc Subject: Re: problem: query result in jdbc is <> result in psql Date: Tue, 10 Jan 2012 19:17:29 -0500 Organization: Hub.Org Networking Services Lines: 11 Message-ID: <4F0CD519.10209@selectacast.net> References: <4F0B228E.8060708@selectacast.net> <4F0B2B5E.8030703@selectacast.net> <4F0B6FBF.5050703@selectacast.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@news.hub.org To: Dave Cramer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111115 Thunderbird/8.0 In-Reply-To: To: pgsql-jdbc@postgresql.org X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201201/44 X-Sequence-Number: 22584 That doesn't help. It isn't a permission problem, the problem is my sql has in it: (select relname from pg_catalog.pg_class where pg_catalog.pg_class.oid = relation) and pg_class is local to the db I'm connected to, so I can't get names of relations in other dbs. On 01/09/2012 07:41 PM, Dave Cramer wrote: > Try connecting to the postgres database as the postgres user. >