pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: pg_restore creates public schema?
Date: Thu, 6 Oct 2022 15:04:47 -0700
Message-ID: <c542aa19-4238-9708-3cdf-13491982a59e@aklaver.com> (raw)
In-Reply-To: <156444a7-edb4-518e-3c35-9c449a55fab4@gmail.com>
References: <9a423047-24d9-1643-c91e-6c36508b987e@gmail.com>
	<2678272.1665067771@sss.pgh.pa.us>
	<33eb3653-26f1-e6c1-dd16-c43ef93f7624@gmail.com>
	<2749191.1665069637@sss.pgh.pa.us>
	<31774754-424d-3637-8861-f7b61c106a69@gmail.com>
	<5454C60C-EBBC-4A96-9497-667EAB87907D@thebuild.com>
	<da5ad95f-197e-2dcd-ee4d-56af66f90b85@gmail.com>
	<C112329E-2BED-472B-BD32-A4BC6EFE3CC9@thebuild.com>
	<96fcc444-55e0-7dbb-11ba-2a8e20be9e56@aklaver.com>
	<156444a7-edb4-518e-3c35-9c449a55fab4@gmail.com>

On 10/6/22 1:54 PM, Ron wrote:
> On 10/6/22 14:32, Adrian Klaver wrote:
>> On 10/6/22 10:46, Christophe Pettus wrote:
>>>
>>>
>>>> On Oct 6, 2022, at 10:44, Ron <ronljohnsonjr@gmail.com> wrote:
>>>> Sadly, that VM doesn't have nearly enough disk space to hold the 
>>>> backup folder.
>>>
>>> Use file mode, and stream the output via scp/ssh to a different machine?
>>>
>>
>> Or Plan B:
>>
>> 1) Use pg_dump 9.6.24 on existing(going EOL) server
>>
>> 2) Set up a 9.6.24 instance somewhere you have control.
>>
>> 3) pg_restore to it.
>>
>> 4) Then use pg_dump 13.8 on the new instance.
> 
> While that would certainly work, it's a heck of a lot of extra effort 
> for large one-time operations.
> 

1) It could be scripted.

2) Nothing to stop you from splitting into schema only dump for the 9.6 
--> 9.6 --> 13 restore of schema.

3) Then data only dump restored directly to 13.


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (20+ messages)  latest in thread

Message-ID: <c542aa19-4238-9708-3cdf-13491982a59e@aklaver.com>
Permalink:  ../c542aa19-4238-9708-3cdf-13491982a59e@aklaver.com/
Also on:    postgresql.org/message-id/c542aa19-4238-9708-3cdf-13491982a59e@aklaver.com

 · 

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: adrian.klaver@aklaver.com, ronljohnsonjr@gmail.com
  Subject: Re: pg_restore creates public schema?
  In-Reply-To: <c542aa19-4238-9708-3cdf-13491982a59e@aklaver.com>
  References: <9a423047-24d9-1643-c91e-6c36508b987e@gmail.com> <2678272.1665067771@sss.pgh.pa.us> <33eb3653-26f1-e6c1-dd16-c43ef93f7624@gmail.com> <2749191.1665069637@sss.pgh.pa.us> <31774754-424d-3637-8861-f7b61c106a69@gmail.com> <5454C60C-EBBC-4A96-9497-667EAB87907D@thebuild.com> <da5ad95f-197e-2dcd-ee4d-56af66f90b85@gmail.com> <C112329E-2BED-472B-BD32-A4BC6EFE3CC9@thebuild.com> <96fcc444-55e0-7dbb-11ba-2a8e20be9e56@aklaver.com> <156444a7-edb4-518e-3c35-9c449a55fab4@gmail.com> <c542aa19-4238-9708-3cdf-13491982a59e@aklaver.com>

* 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