From: Tom Lane <tgl@sss.pgh.pa.us>
To: Guillaume Lelarge <guillaume@lelarge.info>
Cc: Fabrice Chapuis <fabrice636861@gmail.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: pg_restore remap schema
Date: Mon, 08 Aug 2022 14:22:42 -0400
Message-ID: <645026.1659982962@sss.pgh.pa.us> (raw)
In-Reply-To: <CAECtzeXsfT9UQ_XcmYKGcfXw9OR0OEPH1vwUxdFmvOXAp=jKjA@mail.gmail.com>
References: <CAA5-nLDRgpU_QAKx+LEJshbxkR=TG17Gvei=7n++XKaeX=jmnw@mail.gmail.com>
<CAECtzeXsfT9UQ_XcmYKGcfXw9OR0OEPH1vwUxdFmvOXAp=jKjA@mail.gmail.com>
Guillaume Lelarge <guillaume@lelarge.info> writes:
> Le lun. 8 août 2022 à 18:28, Fabrice Chapuis <fabrice636861@gmail.com> a
>> Is a development in progress to add this option
> Nope, never heard of someone working on this.
People have asked for such a thing before, but it'd be quite difficult
to do reliably --- particularly inside function bodies, which aren't
normally parsed at all during a dump/restore. If you're willing to
accept a 95% solution, running the pg_restore output through "sed"
would likely work fairly well. I'd personally want to diff the
before-and-after scripts before applying though :-)
regards, tom lane
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: tgl@sss.pgh.pa.us, guillaume@lelarge.info, fabrice636861@gmail.com
Subject: Re: pg_restore remap schema
In-Reply-To: <645026.1659982962@sss.pgh.pa.us>
References: <CAA5-nLDRgpU_QAKx+LEJshbxkR=TG17Gvei=7n++XKaeX=jmnw@mail.gmail.com> <CAECtzeXsfT9UQ_XcmYKGcfXw9OR0OEPH1vwUxdFmvOXAp=jKjA@mail.gmail.com> <645026.1659982962@sss.pgh.pa.us>
* 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