From: Bruce Momjian <bruce@momjian.us>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: Frank van Vugt <ftm.van.vugt@foxi.nl>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: minor annoyance - search_path not reset in/after dump/restore
Date: Wed, 24 Jan 2018 09:47:11 -0500
Message-ID: <20180124144711.GH17109@momjian.us> (raw)
In-Reply-To: <CAKFQuwZtAN6_GH70G2Waj__chHqcc2ST_e1RwU6LVTmaeGzhzQ@mail.gmail.com>
References: <3103514.ugGH0nFkBt@techfox>
<20180124025130.GB17109@momjian.us>
<CAKFQuwZtAN6_GH70G2Waj__chHqcc2ST_e1RwU6LVTmaeGzhzQ@mail.gmail.com>
On Tue, Jan 23, 2018 at 08:45:24PM -0700, David G. Johnston wrote:
> On Tuesday, January 23, 2018, Bruce Momjian <bruce@momjian.us> wrote:
>
> The attached patch adds a RESET ALL to the end of the text dump to cause
> a reset of all GUC variables. Does this make sense to folks? It would
> only be applied to head, so it would only appear in PG 11.
>
>
> I'm inclined to take the position that if you are going to do something like
> this you should decide how to proceed when the restore completes. Adding \c or
> RESET ALL immediately after that \i is straight-forward enough and at least in
> the \c case you'd get the effects of any ALTER DATABASE SET commands in the
> dump. Now, usually I would place the \i itself in a file and not type it
> interactively...
>
> While I cannot imagine anyone depending on the current behavior it does
> encourage one to reconnect to the loaded database regardless of how the restore
> happened.
OK, agreed. A pg_dumpall restore will leave you in a different
database. I will assume this item is closed.
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ As you are, so once was I. As I am, so you will be. +
+ Ancient Roman grave inscription +
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: bruce@momjian.us, david.g.johnston@gmail.com, ftm.van.vugt@foxi.nl
Subject: Re: minor annoyance - search_path not reset in/after dump/restore
In-Reply-To: <20180124144711.GH17109@momjian.us>
References: <3103514.ugGH0nFkBt@techfox> <20180124025130.GB17109@momjian.us> <CAKFQuwZtAN6_GH70G2Waj__chHqcc2ST_e1RwU6LVTmaeGzhzQ@mail.gmail.com> <20180124144711.GH17109@momjian.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