From: Tom Lane <tgl@sss.pgh.pa.us>
To: 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 10:16:14 -0400
Message-ID: <18195.1466000174@sss.pgh.pa.us> (raw)
In-Reply-To: <20160615082714.5798.25003@wrigleys.postgresql.org>
References: <20160615082714.5798.25003@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
buschmann@nidsa.net writes:
> On the origin database I had entered
> ALTER DATABASE xxxdb SET search_path TO public,partition2;
> The restore omits setting the search path, it must be entered again with
> ALTER DATABASE on the target machine.
This is operating as designed: pg_dump dumps the content of a database,
not settings attached to the database object as such. You can use
pg_dumpall (possibly with the -g switch) to capture that info.
There've been repeated discussions about refactoring this division of
labor, but nothing's been agreed to yet.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: tgl@sss.pgh.pa.us, buschmann@nidsa.net
Subject: Re: BUG #14192: pg_dump/pg_restore omit setting search_path in restored db
In-Reply-To: <18195.1466000174@sss.pgh.pa.us>
References: <20160615082714.5798.25003@wrigleys.postgresql.org> <18195.1466000174@sss.pgh.pa.us>
* 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