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 1ogYz8-0004yy-QU for pgsql-general@arkaria.postgresql.org; Thu, 06 Oct 2022 22:04:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ogYz7-0007Y5-Ov for pgsql-general@arkaria.postgresql.org; Thu, 06 Oct 2022 22:04:53 +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 1ogYz7-0007Xw-EZ for pgsql-general@lists.postgresql.org; Thu, 06 Oct 2022 22:04:53 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ogYz5-0006dq-6c for pgsql-general@postgresql.org; Thu, 06 Oct 2022 22:04:52 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 0053F32004CE; Thu, 6 Oct 2022 18:04:48 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 06 Oct 2022 18:04:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1665093888; x= 1665180288; bh=6uzrxJcB4ssmzw6s3IyDzktAy/yLPmu3abZV78e8lyk=; b=a lTRiSTz5LaArHqwWXEoYLqE8HMjTTVEmLsFVXDMbLiOCpbDc6mJLYYx4hYM+N2PE nshBLrfUkJXvbebJ44+c0iZL7RTf8HZbBou110FLTs84AznBL/u1mPs5h5YilRqp O9/k/UJyhQyCqe9Z05VMB1ufR3NrB2lyJG3UgGk9pPNsbEmeBm7cIL/tL3TYqLjQ miWKg4wbwZL2vln16pngE7LNLbSiepObFZadH9PFJUFHNOUURMwkdttcbLxKqk97 nM3Eet99a8qj8wotIxwXBfsr4/T1PcO6wOz1dHk6IJxrzh06XiCLmVwxoP7IHcP2 mzf8WB6kG8EjXBa/dB2Nw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1665093888; x=1665180288; bh=6 uzrxJcB4ssmzw6s3IyDzktAy/yLPmu3abZV78e8lyk=; b=BSHy07tXQnFTTtlSl vWRzY6NnF7770DYbfTYTBEdLSY2hXiRIsH5zAQXlgSt/JnIaTfgRPEAMvKZdxkRq evahxV+GCDYsvyaOxJTcd2LMnumctAhvfb9Bv4PBXpD7t17LuIXNimyUZT82+xgo uJWYFyL4NGqEt8MegW5JiF+XD7RZzBfH4rjboiUE5y69CNITbhrig2bz+ATt7D4x LPhOUmlT8g+mtttY7cb4f1zA7O8FLMNXIJTRXWdyRB9IFl1nTojS+sXE0XTCE+Ys roUbxKD+FfFvxmnf6U3W9ZqJI2BbbJEUme6AE2YGLY5UdUC7Wl4FUCtreHXowNUI 8CrUg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeeiiedgtdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtje ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepteejvdetff ejuedvleeifeefheeutdfhgfdvhffhhfekvdduveegvdejudefgfevnecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvh gvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 6 Oct 2022 18:04:47 -0400 (EDT) Subject: Re: pg_restore creates public schema? To: Ron , 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> <156444a7-edb4-518e-3c35-9c449a55fab4@gmail.com> From: Adrian Klaver Message-ID: Date: Thu, 6 Oct 2022 15:04:47 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <156444a7-edb4-518e-3c35-9c449a55fab4@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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 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