BUG #16464: Unable to restore database backed up with pg_dump into sql that contains expression based index

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: pguser17354(at)mailinator(dot)com
Subject: BUG #16464: Unable to restore database backed up with pg_dump into sql that contains expression based index
Date: 2020-05-26 17:00:38
Message-ID: 16464-c74361f352e4301d@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 16464
Logged by: pg user
Email address: pguser17354(at)mailinator(dot)com
PostgreSQL version: 12.3
Operating system: Centos 6
Description:

Hello,
Restoring from pg_dump fails if you have a table with expression based index
where a stored function calls another function.
Ex. SQL with steps to reproduce: https://pastebin.com/raw/CFgxtwSY

Related to:
https://wiki.postgresql.org/wiki/A_Guide_to_CVE-2018-1058:_Protect_Your_Search_Path

Workaround:
Removing "SELECT pg_catalog.set_config('search_path', '', false);" from the
sql dump.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message David G. Johnston 2020-05-26 17:53:54 Re: BUG #16464: Unable to restore database backed up with pg_dump into sql that contains expression based index
Previous Message Tom Lane 2020-05-26 14:50:19 Re: Re[2]: