Re: query

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Chuck Davis <cjgunzel(at)gmail(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: query
Date: 2017-04-29 16:45:13
Message-ID: 19523.1493484313@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Chuck Davis <cjgunzel(at)gmail(dot)com> writes:
> If I execute the select statement in psql it works as expected:
> ...
> If I execute the statement in my program (and this has been working for
> years on DB2) I get the following exception:
> org.postgresql.util.PSQLException: ERROR: relation "infosys.company" does
> not exist

I'd lay pretty long odds that that means the program is connecting to a
different database than you're connecting to in psql. Double-check the
connection URL it's using.

(A common variant of that is "program is using a different search_path",
but since you're failing on a schema-qualified relation name, search
path doesn't enter into it.)

regards, tom lane

In response to

  • Re: query at 2017-04-29 16:12:46 from Chuck Davis

Responses

  • Re: query at 2017-05-01 02:32:00 from Dave Cramer

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2017-05-01 02:32:00 Re: query
Previous Message Chuck Davis 2017-04-29 16:12:46 Re: query