Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bDD3i-0004H5-TL for pgsql-bugs@arkaria.postgresql.org; Wed, 15 Jun 2016 15:48:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bDD3h-0004j0-OL for pgsql-bugs@arkaria.postgresql.org; Wed, 15 Jun 2016 15:48:49 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bDD3h-0004ib-1S for pgsql-bugs@postgresql.org; Wed, 15 Jun 2016 15:48:49 +0000 Received: from hogranch.com ([75.101.82.47]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bDD3Y-0007fo-Di for pgsql-bugs@postgresql.org; Wed, 15 Jun 2016 15:48:47 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id u5FFmYv10050; Wed, 15 Jun 2016 08:48:34 -0700 Subject: Re: BUG #14192: pg_dump/pg_restore omit setting search_path in restored db To: Hans Buschmann References: <20160615082714.5798.25003@wrigleys.postgresql.org> <18195.1466000174@sss.pgh.pa.us> Cc: pgsql-bugs@postgresql.org From: John R Pierce Message-ID: Date: Wed, 15 Jun 2016 08:48:35 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------E8D98BB967B8770D992DF8CC" X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Pg-Spam-Score: -3.3 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org This is a multi-part message in MIME format. --------------E8D98BB967B8770D992DF8CC Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 6/15/2016 8:49 AM, Hans Buschmann wrote: > > Even the syntax (ALTER DATABASE xxxdb SET SEARCH PATH) suggests this > to be part of the database and not of a session or the cluster. that syntax is indeed stored with the database schema, and would be part of a database dump. you also can simply SET search_path 'somevalue'; and this applies only to the current session, and wouldn't be part of the database -- john r pierce, recycling bits in santa cruz --------------E8D98BB967B8770D992DF8CC Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
On 6/15/2016 8:49 AM, Hans Buschmann wrote:

Even the syntax (ALTER DATABASE xxxdb SET SEARCH PATH) suggests this to be part of the database and not of a session or the cluster.

that syntax is indeed stored with the database schema, and would be part of a database dump.

you also can simply SET search_path 'somevalue';    and this applies only to the current session, and wouldn't be part of the database


-- 
john r pierce, recycling bits in santa cruz
--------------E8D98BB967B8770D992DF8CC--