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

From PG Bug reporting form
Subject BUG #15101: function set search_path = '' breaks dump/restore
Date
Msg-id 152049236165.23137.5241258464332317087@wrigleys.postgresql.org
Whole thread Raw
Responses Re: BUG #15101: function set search_path = '' breaks dump/restore
Re: BUG #15101: function set search_path = '' breaks dump/restore
List pgsql-bugs
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.


pgsql-bugs by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: BUG #15096: Unable to CREATE TABLE LIKE with bigint identitycolumn
Next
From: Michael Paquier
Date:
Subject: Re: BUG #15096: Unable to CREATE TABLE LIKE with bigint identitycolumn