Re: Cannot restore dump when using IS DISTINCT FROM on a HSTOREcolumn - Mailing list pgsql-general

From Adrian Klaver
Subject Re: Cannot restore dump when using IS DISTINCT FROM on a HSTOREcolumn
Date
Msg-id ac4e8909-e85d-42cc-cd32-291561c951ee@aklaver.com
Whole thread Raw
In response to Re: Cannot restore dump when using IS DISTINCT FROM on a HSTORE column  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
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



pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Cannot restore dump when using IS DISTINCT FROM on a HSTORE column
Next
From: "Lu, Dan"
Date:
Subject: postgresql: Help with hstore hextension