| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Guillaume Lelarge <guillaume(at)lelarge(dot)info> |
| Cc: | Fabrice Chapuis <fabrice636861(at)gmail(dot)com>, "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: pg_restore remap schema |
| Date: | 2022-08-08 18:22:42 |
| Message-ID: | 645026.1659982962@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Guillaume Lelarge <guillaume(at)lelarge(dot)info> writes:
> Le lun. 8 août 2022 à 18:28, Fabrice Chapuis <fabrice636861(at)gmail(dot)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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Marcos Pegoraro | 2022-08-08 19:26:36 | Re: pg_restore remap schema |
| Previous Message | Guillaume Lelarge | 2022-08-08 18:16:08 | Re: pg_restore remap schema |