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 1ffoDG-0000HA-Px for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Jul 2018 15:17:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ffoDE-0002vQ-P8 for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Jul 2018 15:17:56 +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 1ffoDE-0002vJ-JW for pgsql-bugs@lists.postgresql.org; Wed, 18 Jul 2018 15:17:56 +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 1ffoDB-0001uc-SM for pgsql-bugs@lists.postgresql.org; Wed, 18 Jul 2018 15:17:56 +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 w6IFHpn8011851; Wed, 18 Jul 2018 11:17:51 -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> Comments: In-reply-to Keith Hickey message dated "Wed, 18 Jul 2018 10:37:49 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <11849.1531927071.1@sss.pgh.pa.us> Date: Wed, 18 Jul 2018 11:17:51 -0400 Message-ID: <11850.1531927071@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Keith Hickey writes: > Ok, that worked. Such a simple change. > i.e. in the function definition, changed the return statement from > return result::customer_tier; > to > return result::public.customer_tier; Check. > However -- > When running the restore as user "root", with the default search path > (which was the case): "$user", public pg_restore doesn't use the default search path anymore. regards, tom lane