From: Tom Lane <tgl@sss.pgh.pa.us>
To: Chuck Davis <cjgunzel@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: query
Date: Sat, 29 Apr 2017 12:45:13 -0400
Message-ID: <19523.1493484313@sss.pgh.pa.us> (raw)
In-Reply-To: <CAHf=Y_Zq1E2kMjD9-gMkEsXvW=Eh45MXgkLn1HFYgr8_kaAXAA@mail.gmail.com>
References: <CAHf=Y_Zq1E2kMjD9-gMkEsXvW=Eh45MXgkLn1HFYgr8_kaAXAA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
Chuck Davis <cjgunzel@gmail.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
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
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: tgl@sss.pgh.pa.us, cjgunzel@gmail.com
Subject: Re: query
In-Reply-To: <19523.1493484313@sss.pgh.pa.us>
References: <CAHf=Y_Zq1E2kMjD9-gMkEsXvW=Eh45MXgkLn1HFYgr8_kaAXAA@mail.gmail.com> <19523.1493484313@sss.pgh.pa.us>
* 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