From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: andrew@tao11.riddles.org.uk
Subject: BUG #15101: function set search_path = '' breaks dump/restore
Date: Thu, 08 Mar 2018 06:59:21 +0000
Message-ID: <152049236165.23137.5241258464332317087@wrigleys.postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 15101
Logged by: Andrew Gierth
Email address: andrew@tao11.riddles.org.uk
PostgreSQL version: 10.3
Operating system: any
Description:
Given:
create or replace function foo()
returns text language sql
as $$
select current_schemas(true)::text;
$$
set search_path = '';
dump/restore (or \ef) fails with:
ERROR: zero-length delimited identifier at or near """"
The problem obviously being that pg_get_functiondef is returning invalid
syntax for the search_path setting.
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: noreply@postgresql.org, andrew@tao11.riddles.org.uk
Subject: Re: BUG #15101: function set search_path = '' breaks dump/restore
In-Reply-To: <152049236165.23137.5241258464332317087@wrigleys.postgresql.org>
References: <152049236165.23137.5241258464332317087@wrigleys.postgresql.org>
* 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