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 1ffozf-00031H-76 for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Jul 2018 16:07:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ffozd-00060G-Fa for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Jul 2018 16:07:57 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ffozd-000607-6E for pgsql-bugs@lists.postgresql.org; Wed, 18 Jul 2018 16:07:57 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ffozV-0000wZ-EP for pgsql-bugs@lists.postgresql.org; Wed, 18 Jul 2018 16:07:55 +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 w6IG7lua014402; Wed, 18 Jul 2018 12:07:47 -0400 From: Tom Lane To: Keith Hickey cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15282: Materialized view with transitive TYPE dependency fails refresh using pg_restore and psql In-reply-to: References: <153184074037.1405.15097715315257989847@wrigleys.postgresql.org> <17166.1531847498@sss.pgh.pa.us> <11850.1531927071@sss.pgh.pa.us> Comments: In-reply-to Keith Hickey message dated "Wed, 18 Jul 2018 11:35:38 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <14400.1531930067.1@sss.pgh.pa.us> Date: Wed, 18 Jul 2018 12:07:47 -0400 Message-ID: <14401.1531930067@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Keith Hickey writes: > But then I saw this config setting embedded at the top of the plain sql > dump file: > SELECT pg_catalog.set_config('search_path', '', false); Right, that's what implements the change in behavior. > So it looks like pg_dump somehow embeds clearing the search_path into its > dumps. There doesn't seem to be a way in pg_dump to tell it to do this or > not to do this. I argued at the time that there should be an option to let it run with some other search path, with the security implications being on the user's head to worry about. I lost that argument, but I still think that we're going to have to provide such a feature. Lately we've been seeing about one complaint a week about this, as uptake of the locked-down versions increases. regards, tom lane