Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m1aZU-0007W4-TY for pgsql-general@arkaria.postgresql.org; Thu, 08 Jul 2021 20:24:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m1aZT-0003C6-So for pgsql-general@arkaria.postgresql.org; Thu, 08 Jul 2021 20:24:31 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m1aZT-0003By-Je for pgsql-general@lists.postgresql.org; Thu, 08 Jul 2021 20:24:31 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m1aZR-0001G9-Mb for pgsql-general@lists.postgresql.org; Thu, 08 Jul 2021 20:24:30 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 168KOSc62041706; Thu, 8 Jul 2021 16:24:28 -0400 From: Tom Lane To: "David G. Johnston" cc: Christopher Causer , "pgsql-generallists.postgresql.org" Subject: Re: pg_dump's restore gives "operator does not exist: public.iprange = public.iprange" but copy paste works In-reply-to: References: <8a602a2a-e0b8-42ef-8468-21fa2eb25bd9@www.fastmail.com> <2040892.1625774942@sss.pgh.pa.us> Comments: In-reply-to "David G. Johnston" message dated "Thu, 08 Jul 2021 13:19:11 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2041704.1625775868.1@sss.pgh.pa.us> Date: Thu, 08 Jul 2021 16:24:28 -0400 Message-ID: <2041705.1625775868@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "David G. Johnston" 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