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 1ntCDP-0002Rv-6K for pgsql-general@arkaria.postgresql.org; Mon, 23 May 2022 17:51:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ntCDO-0007YZ-2f for pgsql-general@arkaria.postgresql.org; Mon, 23 May 2022 17:51:34 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ntCDM-0007YQ-CV for pgsql-general@lists.postgresql.org; Mon, 23 May 2022 17:51:33 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ntCDJ-0004Bf-Cs for pgsql-general@lists.postgresql.org; Mon, 23 May 2022 17:51:31 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id E613F320085B; Mon, 23 May 2022 13:51:27 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 23 May 2022 13:51:28 -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=fm3; t=1653328287; x= 1653414687; bh=mbgraN6DQjTQwt4RPPrTzwqvRn8k+BLlZhmz0qhFOvg=; b=d uQ1VUnhHePoqRnOaoTElPATV9GgE18cDHIceYxzNaA2dgZp/OJD7p1cHiNQY1nns 38PnHripJiDDmg6CyhBuCm1fVH47IzBLP22Jg+0AXj5Vp++fvK8cbQvVGspGMoVy KN+Yk9T6eW43YdZeLbjipnCugEb0tVO0uZGil1am4XZFE5K1MkE/z/fUwZ2cniSJ 3+RiSbXRjjiPx6BVuPBAVBjDEyNEh80vzUSqMEOnAlRvMh94GsMYjg7W6S8RK1jF sAd2Bi3siz5t+nA0VGkEjGRY08lOcAOoE7SyyRiJCKaOF5yzq49IpGSGK8oa0NBR CC+UP9ScfCL6naemGh9TA== 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=fm1; t=1653328287; x=1653414687; bh=m bgraN6DQjTQwt4RPPrTzwqvRn8k+BLlZhmz0qhFOvg=; b=Yx5WLtxPuIV81IRta pXuvsvUfAVgpFU3jnBfQMww6eNn/9/8A1ZF0rJuLlG6808Joszq82Vfte/nLQped Le6KxCUfTnKdqPfPHVfm4AwmdX8etltO0Q0N6gb6UcYhnIzXVjaYyEzCNClTVBKt NdljB64+MooVuTa6LwYgZ8+UqvwDJ8xI8+iin7QojEjgnYAOfRGNqacabZuGzkGU +ch4K4wmgiGJVadfN2Eryhb+v2zKPGgLdUOIsSW0kPnfW+m0YDLtKnSOI6KcCJ6M I/lHw/xABJ1BtCvl2j1P5/r/y1k7/agEXTAQ4tTDqWbm95H4zbDlZI/Pvj0qaP6C yI2ag== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrjedugdekiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuggftrfgrthhtvghrnhepveevfeevfeeugeffkeekhfegieeufffgteeujedvgffh ueejjefhkeejleegtdegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 23 May 2022 13:51:26 -0400 (EDT) Subject: Re: list tablespaces named in custom format dump To: Rob Sargent , "pgsql-generallists.postgresql.org" References: <29112dbe-b1bd-afe9-63d3-f7ba50ece939@gmail.com> <9013c93e-3f01-f40a-4e14-7b1c9d7b065d@aklaver.com> <55cf2ca7-b431-b5bc-1b86-b6c8726ac4c5@aklaver.com> <2904d7b9-3bf0-fee0-f043-c8f904fc6c1d@gmail.com> <78db98f0-0e1b-d744-25fd-5390d720e2b8@aklaver.com> <66d925ce-5a4e-e3e0-583a-f1c2574948dc@gmail.com> From: Adrian Klaver Message-ID: <6272f0ac-4faa-d86e-3f05-7736a4010b54@aklaver.com> Date: Mon, 23 May 2022 10:51:25 -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: <66d925ce-5a4e-e3e0-583a-f1c2574948dc@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 5/23/22 10:19 AM, Rob Sargent wrote: > On 5/23/22 11:07, Adrian Klaver wrote: >> On 5/23/22 10:01 AM, Rob Sargent wrote: >>> On 5/23/22 11:00, Adrian Klaver wrote: >>>> On 5/23/22 9:54 AM, Rob Sargent wrote: >>>>> On 5/23/22 10:50, Adrian Klaver wrote: >>>> >> > This is great news.  I do have pg14.  I thought you had to dump with the > save version as restore pg_dump and pg_restore are backwards compatible. The recommendation is to use the same version of pg_dump as the server you are dumping if the plan is use it as backup to restore to same version of server. If you are planning on restoring to newer version then use the newer version of pg_dump to dump the older server version e.g. version 14 pg_dump dumps version 12 Postgres server. Then use the newer version of pg_restore(14 in this case) to restore to the Postgres 14 server. For the purposes of this question using the 14 version of pg_restore is acceptable to get the information. Actually doing a restore to a 14 version of the server with 12 version of a dump file may create problems as the 12 version of pg_dump may not include information needed by the newer server. -- Adrian Klaver adrian.klaver@aklaver.com