From: John R Pierce <pierce@hogranch.com>
To: Hans Buschmann <buschmann@nidsa.net>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14192: pg_dump/pg_restore omit setting search_path in restored db
Date: Wed, 15 Jun 2016 08:48:35 -0700
Message-ID: <bb66f4a9-ca80-c3c6-7e1c-99ede46ec844@hogranch.com> (raw)
In-Reply-To: <D2B9F2A20670C84685EF7D183F2949E2373D5F@gigant.nidsa.net>
References: <20160615082714.5798.25003@wrigleys.postgresql.org>
<18195.1466000174@sss.pgh.pa.us>
<D2B9F2A20670C84685EF7D183F2949E2373D5F@gigant.nidsa.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: pierce@hogranch.com, buschmann@nidsa.net
Subject: Re: BUG #14192: pg_dump/pg_restore omit setting search_path in restored db
In-Reply-To: <bb66f4a9-ca80-c3c6-7e1c-99ede46ec844@hogranch.com>
References: <20160615082714.5798.25003@wrigleys.postgresql.org> <18195.1466000174@sss.pgh.pa.us> <D2B9F2A20670C84685EF7D183F2949E2373D5F@gigant.nidsa.net> <bb66f4a9-ca80-c3c6-7e1c-99ede46ec844@hogranch.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox