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 290AA8B9CAF for ; Tue, 1 Feb 2005 19:29:08 +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 04802-07 for ; Tue, 1 Feb 2005 19:29:05 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id 770908B9CE2 for ; Tue, 1 Feb 2005 19:29:05 +0000 (GMT) Received: (qmail 20315 invoked by uid 1112); 1 Feb 2005 19:29:05 -0000 Date: Tue, 1 Feb 2005 14:29:05 -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: <41FFD091.4040507@chemaxon.hu> Message-ID: References: <41FFD091.4040507@chemaxon.hu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 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/5 X-Sequence-Number: 12185 On Tue, 1 Feb 2005, [ISO-8859-1] Kov=E1cs P=E9ter wrote: > Hi there, >=20 > I am not sure if this a general or jdbc question. (I am connecting to=20 > pgsql via jdbc.) I have postmaster (PostgreSQL) 7.4.5. It looks like the= =20 > name of primary schema of the user (actually their username) is=20 > prepended to database objects so the "search_path" is not considered any= =20 > more. By default the search_path has the schema of your username included in it= =20 with the special $user variable: jurka=3D# show search_path; search_path =20 -------------- $user,public (1 row) > (I got my stuff in the "public" schema, so I do not find them as=20 > user 'x'.) How can I tell the jdbc driver not to use schema-qualified=20 > object names? >=20 This should still search the public schema if an identically named object= =20 is not found in your user schema. It is unclear from your report exactly= =20 what your search_path setting is, what tables are where, and what query is= =20 not finding them correctly. If your search_path is not set correctly you= =20 may set this globally (postgresql.conf) or per user/database or per=20 connection to match your needs. Kris Jurka