pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15101: function set search_path = '' breaks dump/restore
Date: Thu, 08 Mar 2018 08:54:56 +0000
Message-ID: <876067kl4j.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <152049236165.23137.5241258464332317087@wrigleys.postgresql.org>
References: <152049236165.23137.5241258464332317087@wrigleys.postgresql.org>

>>>>> "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)




view thread (3+ messages)

Message-ID: <876067kl4j.fsf@news-spur.riddles.org.uk>
Permalink:  ../876067kl4j.fsf@news-spur.riddles.org.uk/
Also on:    postgresql.org/message-id/876067kl4j.fsf@news-spur.riddles.org.uk

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: andrew@tao11.riddles.org.uk
  Subject: Re: BUG #15101: function set search_path = '' breaks dump/restore
  In-Reply-To: <876067kl4j.fsf@news-spur.riddles.org.uk>
  References: <152049236165.23137.5241258464332317087@wrigleys.postgresql.org> <876067kl4j.fsf@news-spur.riddles.org.uk>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox