From: Kovács Péter <peter.kovacs@chemaxon.hu>
To: Kris Jurka <books@ejurka.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Primary schema name prepended to database objects
Date: Thu, 03 Feb 2005 11:22:41 +0100
Message-ID: <4201FB71.7060108@chemaxon.hu> (raw)
In-Reply-To: <Pine.BSO.4.56.0502021445470.7681@leary.csoft.net>
References: <41FFD091.4040507@chemaxon.hu>
<Pine.BSO.4.56.0502011423070.16595@leary.csoft.net>
<420091DE.9020003@chemaxon.hu>
<Pine.BSO.4.56.0502021445470.7681@leary.csoft.net>
You are right. Silly me. The qualification was in _my_ code.
I definitely need to slow down a bit :-) .
Peter
Kris Jurka wrote:
>
> On Wed, 2 Feb 2005, [ISO-8859-1] Kov�cs P�ter wrote:
>
>
>>The problem is that where I write in my code, say:
>>
>>"SELECT * FROM mytable"
>>
>>the backend log contains:
>>
>>"SELECT * FROM myusername.mytable"
>>
>>Someone along the way (I suspect the JDBC driver, but I am not sure)
>>"qualifies" my database objects. Probably that is why the "public"
>>schema is not searched for "mytable".
>>
>
>
> This is definitely not the JDBC driver doig this. The qualification by
> search_path I mentioned is done on the server and is done behind the
> scenes, meaning the qualified name would not show up in the backend log
> because it does not rewrite your original query. The fact that the
> backend log says mysername.mytable is a strong indication that it is in
> fact your software that is doing this because neither the driver, nor the
> server would do such a thing. Some kind of reproducible test case would
> convince me otherwise, but I don't expect to be receiving one.
>
> 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: peter.kovacs@chemaxon.hu, books@ejurka.com
Subject: Re: Primary schema name prepended to database objects
In-Reply-To: <4201FB71.7060108@chemaxon.hu>
References: <41FFD091.4040507@chemaxon.hu> <Pine.BSO.4.56.0502011423070.16595@leary.csoft.net> <420091DE.9020003@chemaxon.hu> <Pine.BSO.4.56.0502021445470.7681@leary.csoft.net> <4201FB71.7060108@chemaxon.hu>
* 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