pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: pguser17354@mailinator.com
Subject: BUG #16464: Unable to restore database backed up with pg_dump into sql that contains expression based index
Date: Tue, 26 May 2020 17:00:38 +0000
Message-ID: <16464-c74361f352e4301d@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      16464
Logged by:          pg user
Email address:      pguser17354@mailinator.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.



view thread (2+ messages)  latest in thread

Message-ID: <16464-c74361f352e4301d@postgresql.org>
Permalink:  ../16464-c74361f352e4301d@postgresql.org/
Also on:    postgresql.org/message-id/16464-c74361f352e4301d@postgresql.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, pguser17354@mailinator.com
  Subject: Re: BUG #16464: Unable to restore database backed up with pg_dump into sql that contains expression based index
  In-Reply-To: <16464-c74361f352e4301d@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