X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 8B5D58B9E4F for ; Thu, 3 Feb 2005 10:22:52 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 17433-04 for ; Thu, 3 Feb 2005 10:22:49 +0000 (GMT) Received: from chemaxon.hu (90.156-228-195.hosting.adatpark.hu [195.228.156.90]) by svr1.postgresql.org (Postfix) with ESMTP id 0AEFE8B9EDF for ; Thu, 3 Feb 2005 10:22:49 +0000 (GMT) Received: from a84-0-129-114.adsl-pool.axelero.hu ([84.0.129.114] helo=[10.0.0.161]) by chemaxon.hu with esmtpsa (Exim 4.44 #1 (Debian)) id 1Cwe8O-0001Le-5y TLS Cipher TLSv1:AES256-SHA:256; Thu, 03 Feb 2005 11:22:48 +0100 Message-ID: <4201FB71.7060108@chemaxon.hu> Date: Thu, 03 Feb 2005 11:22:41 +0100 From: =?UTF-8?B?S292w6FjcyBQw6l0ZXI=?= User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kris Jurka Cc: pgsql-jdbc@postgresql.org Subject: Re: Primary schema name prepended to database objects References: <41FFD091.4040507@chemaxon.hu> <420091DE.9020003@chemaxon.hu> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200502/15 X-Sequence-Number: 12195 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 >