pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Stéphane Tachoires <stephane.tachoires@gmail.com>
Cc: Guillaume Lelarge <guillaume@lelarge.info>
Cc: Fabrice Chapuis <fabrice636861@gmail.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Cc: Marcos Pegoraro <marcos@f10.com.br>
Subject: Re: pg_restore remap schema
Date: Wed, 16 Nov 2022 10:10:20 -0500
Message-ID: <1343019.1668611420@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+gpmfL4sHQXiGY2ngpA7aamj2L1tY=ifp=RAid-zCS+FXBH0w@mail.gmail.com>
References: <CAA5-nLDRgpU_QAKx+LEJshbxkR=TG17Gvei=7n++XKaeX=jmnw@mail.gmail.com>
	<CAECtzeXsfT9UQ_XcmYKGcfXw9OR0OEPH1vwUxdFmvOXAp=jKjA@mail.gmail.com>
	<645026.1659982962@sss.pgh.pa.us>
	<CAA5-nLC88MhvtrH54tRSqCZ2Qw_9sn3Jco03rQnBByghvO-ysQ@mail.gmail.com>
	<CAECtzeVznWO98VQyxN8KH24LOcx8UtxoqtLEoKiaowzDnDJ1MA@mail.gmail.com>
	<1340308.1668609748@sss.pgh.pa.us>
	<CA+gpmfL4sHQXiGY2ngpA7aamj2L1tY=ifp=RAid-zCS+FXBH0w@mail.gmail.com>

=?UTF-8?Q?St=C3=A9phane_Tachoires?= <stephane.tachoires@gmail.com> writes:
> And could it be at pg_dump level ?
> It seems more aware of what is doing...

pg_dump would be in a slightly better position, but only slightly.
It still has no idea about the contents of function bodies.

Also, if it's acceptable to do this at dump time, you could just
temporarily rename the schema on the server while making the dump.
(Not that that would fix function bodies either.)

			regards, tom lane





view thread (12+ messages)  latest in thread

Message-ID: <1343019.1668611420@sss.pgh.pa.us>
Permalink:  ../1343019.1668611420@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1343019.1668611420@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, stephane.tachoires@gmail.com, guillaume@lelarge.info, fabrice636861@gmail.com, marcos@f10.com.br
  Subject: Re: pg_restore remap schema
  In-Reply-To: <1343019.1668611420@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> <CAA5-nLC88MhvtrH54tRSqCZ2Qw_9sn3Jco03rQnBByghvO-ysQ@mail.gmail.com> <CAECtzeVznWO98VQyxN8KH24LOcx8UtxoqtLEoKiaowzDnDJ1MA@mail.gmail.com> <1340308.1668609748@sss.pgh.pa.us> <CA+gpmfL4sHQXiGY2ngpA7aamj2L1tY=ifp=RAid-zCS+FXBH0w@mail.gmail.com> <1343019.1668611420@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