X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 11F223A6038 for ; Fri, 28 Jan 2005 23:45:28 +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 18717-01 for ; Fri, 28 Jan 2005 23:45:15 +0000 (GMT) Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by svr1.postgresql.org (Postfix) with ESMTP id D6C103A5EB5 for ; Fri, 28 Jan 2005 23:45:16 +0000 (GMT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.1/8.13.1) with ESMTP id j0SNj850003180 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 28 Jan 2005 16:45:11 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.1/8.13.1) with ESMTP id j0SNj7FO066893; Fri, 28 Jan 2005 16:45:07 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.1/8.13.1/Submit) id j0SNj7E1066892; Fri, 28 Jan 2005 16:45:07 -0700 (MST) (envelope-from mfuhr) Date: Fri, 28 Jan 2005 16:45:07 -0700 From: Michael Fuhr To: "Roderick A. Anderson" Cc: pgsql-admin@postgresql.org Subject: Re: SET command Message-ID: <20050128234507.GA66863@winnie.fuhr.org> References: <41FAC133.40102@mailporter.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41FAC133.40102@mailporter.net> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.002 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200501/291 X-Sequence-Number: 16150 On Fri, Jan 28, 2005 at 02:48:19PM -0800, Roderick A. Anderson wrote: > I'm reading up on schema and trying to remember from when I last > researched them what the process is to make the > > SET search_path TO myschema,public; > > permanent for users when they sign on. The documentation implies that > it is only per SESSION or transaction (LOCAL). I seem to remember some > setting that cause these to be stored and then executed each time a user > connected. You can set variables globally in postgresql.conf, per database with ALTER DATABASE, or per user with ALTER USER. -- Michael Fuhr http://www.fuhr.org/~mfuhr/