From: Kris Jurka <books@ejurka.com>
To: Kovács Péter <pkovacs@chemaxon.hu>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Primary schema name prepended to database objects
Date: Tue, 1 Feb 2005 14:29:05 -0500 (EST)
Message-ID: <Pine.BSO.4.56.0502011423070.16595@leary.csoft.net> (raw)
In-Reply-To: <41FFD091.4040507@chemaxon.hu>
References: <41FFD091.4040507@chemaxon.hu>
On Tue, 1 Feb 2005, [ISO-8859-1] Kovács Péter wrote:
> Hi there,
>
> I am not sure if this a general or jdbc question. (I am connecting to
> pgsql via jdbc.) I have postmaster (PostgreSQL) 7.4.5. It looks like the
> name of primary schema of the user (actually their username) is
> prepended to database objects so the "search_path" is not considered any
> more.
By default the search_path has the schema of your username included in it
with the special $user variable:
jurka=# show search_path;
search_path
--------------
$user,public
(1 row)
> (I got my stuff in the "public" schema, so I do not find them as
> user 'x'.) How can I tell the jdbc driver not to use schema-qualified
> object names?
>
This should still search the public schema if an identically named object
is not found in your user schema. It is unclear from your report exactly
what your search_path setting is, what tables are where, and what query is
not finding them correctly. If your search_path is not set correctly you
may set this globally (postgresql.conf) or per user/database or per
connection to match your needs.
Kris Jurka
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: books@ejurka.com, pkovacs@chemaxon.hu
Subject: Re: Primary schema name prepended to database objects
In-Reply-To: <Pine.BSO.4.56.0502011423070.16595@leary.csoft.net>
References: <41FFD091.4040507@chemaxon.hu> <Pine.BSO.4.56.0502011423070.16595@leary.csoft.net>
* 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