From: Lele Gaifax <lele@metapensiero.it>
To: pgsql-general@postgresql.org
Subject: Re: Cannot restore dump when using IS DISTINCT FROM on a HSTORE column
Date: Thu, 05 Sep 2019 18:23:07 +0200
Message-ID: <87sgpa4sr8.fsf@metapensiero.it> (raw)
References: <87woem4ymk.fsf@metapensiero.it>
<23539.1567694137@sss.pgh.pa.us>
Tom Lane <tgl@sss.pgh.pa.us> writes:
> If you have the dump in a text file you could just edit it and remove
> that line (it's only about a dozen lines in, typically). Otherwise
> you could delete it with sed or the like, roughly
>
> pg_restore dumpfile | sed s'/^SELECT pg_catalog.set_config('search_path', '', false);//' | psql targetdb
Great, I can easily do that! I missed the "rewrite-dump-as-sql-script"
functionality of pg_restore.
Thanks a lot, also to Adrian!
bye, lele.
--
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
lele@metapensiero.it | -- Fortunato Depero, 1929.
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: lele@metapensiero.it
Subject: Re: Cannot restore dump when using IS DISTINCT FROM on a HSTORE column
In-Reply-To: <87sgpa4sr8.fsf@metapensiero.it>
References: <87woem4ymk.fsf@metapensiero.it> <23539.1567694137@sss.pgh.pa.us> <87sgpa4sr8.fsf@metapensiero.it>
* 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