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 3BFC1D1C4DF for ; Tue, 22 Jul 2003 21:07:52 +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 93994-02 for ; Tue, 22 Jul 2003 18:07:07 -0300 (ADT) Received: from mail1.ihs.com (mail1.ihs.com [170.207.70.222]) by svr1.postgresql.org (Postfix) with ESMTP id 26DD1D1C4DC for ; Tue, 22 Jul 2003 18:07:50 -0300 (ADT) Received: from css120.ihs.com (css120.ihs.com [170.207.105.120]) by mail1.ihs.com (8.12.9/8.12.9) with ESMTP id h6ML6LT5009992; Tue, 22 Jul 2003 15:06:21 -0600 (MDT) Date: Tue, 22 Jul 2003 14:56:34 -0600 (MDT) From: "scott.marlowe" To: Dilan Arumainathan Cc: Subject: Re: How can I set a default schema for a session In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-MailScanner: Found to be clean X-MailScanner-SpamCheck: X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/223 X-Sequence-Number: 9563 On Tue, 22 Jul 2003, 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? Just change search_path to include it: psql > set search_path=$user,public,mynewschema;