From: Tom Lane <tgl@sss.pgh.pa.us>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: Christopher Causer <chy.causer@gmail.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: pg_dump's restore gives "operator does not exist: public.iprange = public.iprange" but copy paste works
Date: Thu, 08 Jul 2021 16:24:28 -0400
Message-ID: <2041705.1625775868@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKFQuwaKcK8Wg++sNdMJ3jR58Lfas-98xk2a3am=fXasGs0ADg@mail.gmail.com>
References: <8a602a2a-e0b8-42ef-8468-21fa2eb25bd9@www.fastmail.com>
<2040892.1625774942@sss.pgh.pa.us>
<CAKFQuwaKcK8Wg++sNdMJ3jR58Lfas-98xk2a3am=fXasGs0ADg@mail.gmail.com>
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> I'll admit these have been infrequent since resolving CVE 2018-1058, but I
> still disagree with the decision to not give the DBA an option on whether
> to leave public in their search_path during a pg_dump and pg_restore.
Yeah, I was never for that decision either. Anybody who's sufficiently
hot about it could try submitting a patch and see what happens.
I'm not quite sure how the option should work, but maybe call it
--use-unsafe-path and define it as adopting the same search_path
setting seen at dump time? Or maybe better to provide a restore-time
option saying "use this search_path"? It needs some thought, not
just quick-n-dirty code.
regards, tom lane
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-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, david.g.johnston@gmail.com, chy.causer@gmail.com
Subject: Re: pg_dump's restore gives "operator does not exist: public.iprange = public.iprange" but copy paste works
In-Reply-To: <2041705.1625775868@sss.pgh.pa.us>
References: <8a602a2a-e0b8-42ef-8468-21fa2eb25bd9@www.fastmail.com> <2040892.1625774942@sss.pgh.pa.us> <CAKFQuwaKcK8Wg++sNdMJ3jR58Lfas-98xk2a3am=fXasGs0ADg@mail.gmail.com> <2041705.1625775868@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