Re: BUG #15101: function set search_path = '' breaks dump/restore - Mailing list pgsql-bugs

From Andrew Gierth
Subject Re: BUG #15101: function set search_path = '' breaks dump/restore
Date
Msg-id 876067kl4j.fsf@news-spur.riddles.org.uk
Whole thread Raw
In response to BUG #15101: function set search_path = '' breaks dump/restore  (PG Bug reporting form <noreply@postgresql.org>)
List pgsql-bugs
>>>>> "PG" == PG Bug reporting form <noreply@postgresql.org> 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)


pgsql-bugs by date:

Previous
From: Michael Paquier
Date:
Subject: Re: BUG #15101: function set search_path = '' breaks dump/restore
Next
From: Marius Vaičiulis
Date:
Subject: 9.6.7 -> 9.6.8 analyze worker behaviour changed?