X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id D27D8D1C4F1 for ; Tue, 22 Jul 2003 21:18:57 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 93488-05 for ; Tue, 22 Jul 2003 18:18:13 -0300 (ADT) Received: from pima.hostsharing.net (www.hostsharing.net [212.42.230.151]) by svr1.postgresql.org (Postfix) with ESMTP id 16D01D1C4CC for ; Tue, 22 Jul 2003 18:18:56 -0300 (ADT) Received: from iwate.ianb.homelinux.net (pD9517C1C.dip.t-dialin.net [217.81.124.28]) by pima.hostsharing.net (Postfix) with ESMTP id 433062CE9A4; Tue, 22 Jul 2003 23:18:57 +0200 (CEST) From: Ian Barwick To: "Dilan Arumainathan" , Subject: Re: How can I set a default schema for a session Date: Tue, 22 Jul 2003 23:18:58 +0200 User-Agent: KMail/1.5.1 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200307222318.58234.barwick@gmx.net> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/225 X-Sequence-Number: 9565 On Tuesday 22 July 2003 22:52, Dilan Arumainathan wrote: > Hi, > Every time I have to specify a table name in a query I find myself > prefixing the name of the table with the schema name as in schema.table. Is > there a way to force the queries to look in one particular schema whenever > I do not specify a schema name? SET search_path TO ... http://www.postgresql.org/docs/7.3/static/ddl-schemas.html You can also use ALTER USER user_name SET search_path to ...; to make the setting permanent. Ian Barwick barwick@gmx.net