Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1etrKK-0005N9-Pk for pgsql-bugs@arkaria.postgresql.org; Thu, 08 Mar 2018 08:55:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1etrKJ-0005k0-GH for pgsql-bugs@arkaria.postgresql.org; Thu, 08 Mar 2018 08:55:03 +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 1etrKJ-0005jr-9v for pgsql-bugs@lists.postgresql.org; Thu, 08 Mar 2018 08:55:03 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1etrKG-0000oT-KQ for pgsql-bugs@lists.postgresql.org; Thu, 08 Mar 2018 08:55:02 +0000 Received: from [192.168.127.1] (port=48776 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.88 (FreeBSD)) (envelope-from ) id 1etrKE-0008t6-Gv for pgsql-bugs@lists.postgresql.org; Thu, 08 Mar 2018 08:54:58 +0000 Received: from [127.0.0.1] (port=42786 helo=caithnard.riddles.org.uk) by caithnard.riddles.org.uk with esmtp (Exim 4.89 (FreeBSD)) (envelope-from ) id 1etrKD-000BkZ-Mn for pgsql-bugs@lists.postgresql.org; Thu, 08 Mar 2018 08:54:57 +0000 From: Andrew Gierth To: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15101: function set search_path = '' breaks dump/restore In-Reply-To: <152049236165.23137.5241258464332317087@wrigleys.postgresql.org> (PG Bug reporting form's message of "Thu, 08 Mar 2018 06:59:21 +0000") Message-ID: <876067kl4j.fsf@news-spur.riddles.org.uk> References: <152049236165.23137.5241258464332317087@wrigleys.postgresql.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (berkeley-unix) Date: Thu, 08 Mar 2018 08:54:56 +0000 MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >>>>> "PG" == PG Bug reporting form writes: PG> Given: PG> create or replace function foo() PG> returns text language sql PG> as $$ PG> select current_schemas(true)::text; PG> $$ PG> set search_path = ''; For the record, the workaround I suggested to the user on IRC who ran into this issue was: alter function foo() set search_path = pg_catalog; which has (as far as I can tell) exactly the same runtime effect as setting it to '' but doesn't break dump/restore. -- Andrew (irc:RhodiumToad)