Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fe5XY-0002ZA-HM for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Jul 2018 21:23:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fe5XW-0004wM-GJ for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Jul 2018 21:23:46 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fe5XW-0004wF-9m for pgsql-hackers@lists.postgresql.org; Fri, 13 Jul 2018 21:23:46 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fe5XT-0001Wt-Mt for pgsql-hackers@lists.postgresql.org; Fri, 13 Jul 2018 21:23:45 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w6DLNed7013034; Fri, 13 Jul 2018 17:23:40 -0400 From: Tom Lane To: "David G. Johnston" cc: Andrew Dunstan , Marc Cousin , PostgreSQL Hackers Subject: Re: cannot restore schema with is not distinct from on hstore since PG 9.6.8 In-reply-to: References: <15487.1531150466@sss.pgh.pa.us> <10492.1531515255@sss.pgh.pa.us> Comments: In-reply-to "David G. Johnston" message dated "Fri, 13 Jul 2018 14:17:30 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <13032.1531517020.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 13 Jul 2018 17:23:40 -0400 Message-ID: <13033.1531517020@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "David G. Johnston" writes: > I think serious consideration needs to be given to ways to allow the use= r > of pg_dump/pg_restore to choose the prior, less secure, mode of operatio= n=E2=80=8B. > IMO the risk surface presented to support back-patching the behavioral > changes was not severe enough to do so in the first place. I'm presumin= g > undoing the back-patch will be shot down without mercy but at least > consider an escape hatch for unafflicted secure systems that just happen= to > depend on search_path more than a super-hardened system would. FWIW, in the security team's discussions of CVE-2018-1058, I argued strenuously in favor of providing a way to run pg_dump/pg_restore with the system's default search_path as before. I lost the argument; but maybe the need for features like this shows that we are not really ready to insist on unconditional security there. regards, tom lane