Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ogXsj-0001hZ-U3 for pgsql-general@arkaria.postgresql.org; Thu, 06 Oct 2022 20:54:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ogXsh-0007iu-RN for pgsql-general@arkaria.postgresql.org; Thu, 06 Oct 2022 20:54:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ogXsh-0007cr-Fa for pgsql-general@lists.postgresql.org; Thu, 06 Oct 2022 20:54:11 +0000 Received: from mail-oi1-x22c.google.com ([2607:f8b0:4864:20::22c]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ogXsf-00067D-7z for pgsql-general@postgresql.org; Thu, 06 Oct 2022 20:54:11 +0000 Received: by mail-oi1-x22c.google.com with SMTP id o64so3384167oib.12 for ; Thu, 06 Oct 2022 13:54:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Jbk5Jto8R/rW2ayN+Jx9dYBb2kkpTAaIw8BmRIoJ14o=; b=PadGDIPQKCKjWwPfiMAJH8HXd/N66DM8pPCaEXRGn4KjebMqSnW6ZUyCAEmYuMVrIv VRFkdqVMsF5VUaJOD3rToBsX/kOzDsaQMkVB1a4z2K8szztwXi2y0hgyel/9S2cuNswn TvP6nfb0X7eJkYUFkmssGr4kF5OCGcfUDCiwnOroqZWJhTpWeqpAMPiQGoPEWJM2dWn1 M4ppqMyYNi6zGlD4qBcZmkahsvV/AEHQiv9Eit3vlEHHBjkjSXgsux/CWFy+i5Omy/t2 tbUK/dBDVMiqyT0124chzntUPqJ1tsqs7lzMXLQPFybdioV6DOBXhygfJWQJ36yQdnrs nxzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Jbk5Jto8R/rW2ayN+Jx9dYBb2kkpTAaIw8BmRIoJ14o=; b=tbKdks0V1d8uu8jh4DLZmMiab/UylJCW6th7Fb/xXhZhZq8zJ7b4v9ZlF0y0/9xqa8 ykBGU1+hl+MPoE7B+oktJSwCjPSCswSesBeEVc7GOSpMYE+tjVd3LTYguRKaLtFlk6c0 svdONYMzYt0mIvPKsgh9t/5bSKBHtsRcecAfJJTHiDsAdjD2DAzpNGeYMOqlMm6nAB7k xEtz+Fs0T2gVX2lX3cQqfaWjl6N8ngezLcdtaGsI/pnmUL86MUcBUpZK8F2lB3NuUIqI hrM8mgiAjsYTiD8I73ReNa8gVm/E/IluC8zNB9idPhOI8uuDbQgZRVmeRsJNuUJlvHWK pfrQ== X-Gm-Message-State: ACrzQf2FC5lUVuuvRmPYJGYq9HCC4eCW3wIa7hMpoRCjVYU+4Vfz3QlB YQ5bCyLY4QIOExPt04aIxRS4cr9bz5I= X-Google-Smtp-Source: AMsMyM5FK+a2437Kzz/Vr5QMixICmt25FzyGjo3IsH90gGnULYJ2ZOzqUifEPyBTkpQSdndPJYKgEQ== X-Received: by 2002:a05:6808:1b1f:b0:350:9443:d8f5 with SMTP id bx31-20020a0568081b1f00b003509443d8f5mr744422oib.288.1665089647005; Thu, 06 Oct 2022 13:54:07 -0700 (PDT) Received: from [192.168.88.10] (ip68-11-68-85.no.no.cox.net. [68.11.68.85]) by smtp.googlemail.com with ESMTPSA id z36-20020a056870c22400b0012d130c2fdasm310491oae.48.2022.10.06.13.54.05 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Oct 2022 13:54:06 -0700 (PDT) Message-ID: <156444a7-edb4-518e-3c35-9c449a55fab4@gmail.com> Date: Thu, 6 Oct 2022 15:54:04 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: pg_restore creates public schema? Content-Language: en-US To: pgsql-general 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> <96fcc444-55e0-7dbb-11ba-2a8e20be9e56@aklaver.com> From: Ron In-Reply-To: <96fcc444-55e0-7dbb-11ba-2a8e20be9e56@aklaver.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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 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. -- Angular momentum makes the world go 'round.