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 7CF4F8B9C4A for ; Wed, 2 Feb 2005 19:50:46 +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 38595-10 for ; Wed, 2 Feb 2005 19:50:16 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id 8705A8B9B9A for ; Wed, 2 Feb 2005 19:50:13 +0000 (GMT) Received: (qmail 26465 invoked by uid 1112); 2 Feb 2005 19:50:03 -0000 Date: Wed, 2 Feb 2005 14:50:03 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: =?ISO-8859-1?Q?Kov=E1cs_P=E9ter?= Cc: pgsql-jdbc@postgresql.org Subject: Re: Primary schema name prepended to database objects In-Reply-To: <420091DE.9020003@chemaxon.hu> Message-ID: References: <41FFD091.4040507@chemaxon.hu> <420091DE.9020003@chemaxon.hu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.014 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200502/10 X-Sequence-Number: 12190 On Wed, 2 Feb 2005, [ISO-8859-1] Kov=E1cs P=E9ter wrote: > The problem is that where I write in my code, say: >=20 > "SELECT * FROM mytable" >=20 > the backend log contains: >=20 > "SELECT * FROM myusername.mytable" >=20 > Someone along the way (I suspect the JDBC driver, but I am not sure)=20 > "qualifies" my database objects. Probably that is why the "public"=20 > schema is not searched for "mytable". >=20 This is definitely not the JDBC driver doig this. The qualification by=20 search_path I mentioned is done on the server and is done behind the=20 scenes, meaning the qualified name would not show up in the backend log=20 because it does not rewrite your original query. The fact that the=20 backend log says mysername.mytable is a strong indication that it is in=20 fact your software that is doing this because neither the driver, nor the= =20 server would do such a thing. Some kind of reproducible test case would=20 convince me otherwise, but I don't expect to be receiving one. Kris Jurka