pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Lele Gaifax <lele@metapensiero.it>
Cc: pgsql-general@postgresql.org
Subject: Re: Cannot restore dump when using IS DISTINCT FROM on a HSTORE column
Date: Thu, 5 Sep 2019 07:50:54 -0700
Message-ID: <ac4e8909-e85d-42cc-cd32-291561c951ee@aklaver.com> (raw)
In-Reply-To: <23539.1567694137@sss.pgh.pa.us>
References: <87woem4ymk.fsf@metapensiero.it>
	<23539.1567694137@sss.pgh.pa.us>

On 9/5/19 7:35 AM, Tom Lane wrote:
> Lele Gaifax <lele@metapensiero.it> writes:
>> I'm hitting a problem very similar to the one described here[1]

> 
> pg_restore dumpfile | sed s'/^SELECT pg_catalog.set_config('search_path', '', false);//' | psql targetdb
> 
> There's been some discussion of providing a simpler way to do this,
> but nothing's been done about that either.

My 2 cents would be for a --unsecure-path option to pg_dump/restore that 
would drop the pg_catalog.set_config('search_path', '', false).

> 			regards, tom lane
> 
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (5+ messages)  latest in thread

Message-ID: <ac4e8909-e85d-42cc-cd32-291561c951ee@aklaver.com>
Permalink:  ../ac4e8909-e85d-42cc-cd32-291561c951ee@aklaver.com/
Also on:    postgresql.org/message-id/ac4e8909-e85d-42cc-cd32-291561c951ee@aklaver.com

 · 

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-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, tgl@sss.pgh.pa.us, lele@metapensiero.it
  Subject: Re: Cannot restore dump when using IS DISTINCT FROM on a HSTORE column
  In-Reply-To: <ac4e8909-e85d-42cc-cd32-291561c951ee@aklaver.com>
  References: <87woem4ymk.fsf@metapensiero.it> <23539.1567694137@sss.pgh.pa.us> <ac4e8909-e85d-42cc-cd32-291561c951ee@aklaver.com>

* 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