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 1ntCW9-0003Xb-BH for pgsql-general@arkaria.postgresql.org; Mon, 23 May 2022 18:10:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ntCW8-0005RS-6f for pgsql-general@arkaria.postgresql.org; Mon, 23 May 2022 18:10:56 +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 1ntCW7-0005O3-RP for pgsql-general@lists.postgresql.org; Mon, 23 May 2022 18:10:55 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ntCW5-0004Qs-9r for pgsql-general@lists.postgresql.org; Mon, 23 May 2022 18:10:54 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 6C71C3200A40; Mon, 23 May 2022 14:10:51 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 23 May 2022 14:10:51 -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=1653329450; x= 1653415850; bh=IetCzaSCcrT8TSpEGE72k9Zm1klf/tY6GQIRG4b4KkQ=; b=c qGgTS/bk5Uf5fS4QJAIG3mfrPmM5Q3ngQoGBVu5xpoaUbWqbPH/OKX/p6qAdwMAz YRe/BVqCOl9cvgWEgcyY5N/sDZpTm349AEemS+CpJCFVrWdb2/KYNNhIuDUoW4TM xYzkUbXSVf79kBeEf5JbLrTUwSPXCmkAyuHXxkBrmP7lYDpm5FNL3Ray/JGw9/cF RwKTLxAAErqLdjNyJ/R1PGaFesk5ozRw1Ur7dk/HzF9NglJrZh+VtXckfNdZ8Jui CJ5EHqv493vKqeJDVW/Res9IypCFvlkXZJfcr6E/VmPsXq02IxO6v+hM4BTjO4p4 Mf06TRUFpQBtY9baZm05g== 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=1653329450; x=1653415850; bh=I etCzaSCcrT8TSpEGE72k9Zm1klf/tY6GQIRG4b4KkQ=; b=HIsEmyz/FL2D72r1H j4gHFXDF6PErgfNKKL8+nCV39HKShBPtNeRBq+xYzXtjYt8EQCe6iaRwynUk4Wjn P4xvSl1g6+kjGCorF67trr6kAIjp/VpdLT8QuxTrfRfbrshwKjtUyRVgMQtwRTOO 6o4mfu4rJPe2y1B28/Q6BXqkl3y8LPpW+Gu84/dDteiHykAHTpYXSFrHptndSzlv LO32gPKb6hhdHTnpcLg2LUX24++vnasGJK47Yehfz7i/xCbKC8nbGVLIikV/HCbT GwprZbOkzBIT4oBMrkUaaqPbee9pUzb9JbLdemmDCm4GyFhtRcoKb/Apocb0cXUo 03dYg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrjedugdeludcutefuodetggdotefrodftvf 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 14:10:50 -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> <6272f0ac-4faa-d86e-3f05-7736a4010b54@aklaver.com> From: Adrian Klaver Message-ID: Date: Mon, 23 May 2022 11:10:49 -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: 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 11:04 AM, Rob Sargent wrote: > Thanks Adrian.  There's enough wiggle room in there for me to at least > try the restore. Linus file command tells me > > db.dump: PostgreSQL custom database dump - v1.13-0 The pg_restore -l command will show the relevant information at top of file so: pg_restore -l pg14_test.out > toc.txt head -n 15 toc.txt ; ; Archive created at 2022-05-23 10:24:23 PDT ; dbname: test ; TOC Entries: 745 ; Compression: -1 ; Dump Version: 1.14-0 ; Format: CUSTOM ; Integer: 4 bytes ; Offset: 8 bytes ; Dumped from database version: 14.2 ; Dumped by pg_dump version: 14.2 ; ; ; Selected TOC Entries: > > That dump was from a version 10 server.  Any guess at how that "v1.13-0" > relates to the server version?  Dumps from the current pg14 server  say > "v1.14-0" so it looks to me like the dumps were done with v13 > pg-restore.  This surprises me, but I do not manage the server.  Maybe > my dump file doesn't have anything pg14 restore can't handle.. we'll see I have abused this on occasion and succeeded, though sometimes it involves some tweaks. > > Thanks again, all. -- Adrian Klaver adrian.klaver@aklaver.com