pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joseph Shraibman <jks@selectacast.net>
To: pgsql-jdbc@postgresql.org
Subject: Re: problem: query result in jdbc is <> result in psql
Date: Mon, 09 Jan 2012 17:55:18 -0500
Message-ID: <jefr8l$2ijf$1@news.hub.org> (raw)
In-Reply-To: <4F0B6FBF.5050703@selectacast.net>
References: <jedbd4$bo7$1@news.hub.org>
	<jedd6l$21mu$1@news.hub.org>
	<CADK3HHKe-yGSsfKAVEyL5rm+5x=iecVsuDWU5q7to7sCZUG8Lg@mail.gmail.com>
	<4F0B228E.8060708@selectacast.net>
	<CADK3HHJMRSj6jPaoXSjt+nb-C5g_nzR4=6AX80k9HPt-R0-Yvg@mail.gmail.com>
	<4F0B2B5E.8030703@selectacast.net>
	<CADK3HHLZ830Sia=1-7JUXzGe2C-sm-igD6Cokjbngg1NGGQtAg@mail.gmail.com>
	<4F0B6FBF.5050703@selectacast.net>

On 01/09/2012 05:52 PM, Joseph Shraibman wrote:
> On 01/09/2012 01:44 PM, Dave Cramer wrote:
>> OK, tried with 9.1.2 still can't replicate this problem.
>>
> Found the problem. When connecting with jdbc I was connecting to
> template1, when connecting with psql I was connecting to a different
> database. When connecting to template1 I can't view the relname from the
> other database, even though its the same user.
>
The problem being that when I'm connected to a different database 
selecting on pg_catalog in my database isn't going to give me the 
correct result.



view thread (12+ messages)  latest in thread

Message-ID: <jefr8l$2ijf$1@news.hub.org>
Permalink:  ../jefr8l$2ijf$1@news.hub.org/
Also on:    postgresql.org/message-id/jefr8l$2ijf$1@news.hub.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: jks@selectacast.net
  Subject: Re: problem: query result in jdbc is <> result in psql
  In-Reply-To: <jefr8l$2ijf$1@news.hub.org>
  References: <jedbd4$bo7$1@news.hub.org> <jedd6l$21mu$1@news.hub.org> <CADK3HHKe-yGSsfKAVEyL5rm+5x=iecVsuDWU5q7to7sCZUG8Lg@mail.gmail.com> <4F0B228E.8060708@selectacast.net> <CADK3HHJMRSj6jPaoXSjt+nb-C5g_nzR4=6AX80k9HPt-R0-Yvg@mail.gmail.com> <4F0B2B5E.8030703@selectacast.net> <CADK3HHLZ830Sia=1-7JUXzGe2C-sm-igD6Cokjbngg1NGGQtAg@mail.gmail.com> <4F0B6FBF.5050703@selectacast.net> <jefr8l$2ijf$1@news.hub.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox