X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 338FED1B509 for ; Fri, 19 Sep 2003 14:40:02 +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 57472-03 for ; Fri, 19 Sep 2003 11:39:55 -0300 (ADT) Received: from news.hub.org (unknown [64.117.224.194]) by svr1.postgresql.org (Postfix) with ESMTP id 5412ED1B50F for ; Fri, 19 Sep 2003 11:39:51 -0300 (ADT) Received: from news.hub.org (host-64-117-224-194.altec1.com [64.117.224.194] (may be forged)) by news.hub.org (8.12.9/8.12.9) with ESMTP id h8JEdosl077508 for ; Fri, 19 Sep 2003 14:39:50 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id h8JEDfqG074077 for pgsql-docs@postgresql.org; Fri, 19 Sep 2003 14:13:41 GMT From: Harry Broomhall X-Newsgroups: comp.databases.postgresql.docs Subject: Re: About SET SEARCH_PATH Date: Fri, 19 Sep 2003 15:13:10 +0100 Organization: none Reply-To: harry.broomhall@uk.easynet.net Message-ID: References: <3F68782B.FA15B657@rodos.fzk.de> <5602.1063831232@sss.pgh.pa.us> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 27 To: pgsql-docs@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/56 X-Sequence-Number: 2012 On Wed, 17 Sep 2003 16:40:32 -0400, tgl@sss.pgh.pa.us (Tom Lane) wrote: >Christoph Haller writes: >>> The search path may be altered by a run-time setting. >>> The command to use is SET SEARCH_PATH 'schema'[,'schema']... > >> It should be >> SET SEARCH_PATH TO schema[,schema]... > >Actually, you can do it either way: > >regression=# set search_path TO a,b,c; >regression=# set search_path TO 'a','b','c'; > >although not > >regression=# set search_path TO 'a,b,c'; >ERROR: schema "a,b,c" does not exist > But surely not without the 'TO' word, which is how it appears in 6.13 of the User's Guide? Regards, Harry.