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 1ntCaE-0003mm-GT for pgsql-general@arkaria.postgresql.org; Mon, 23 May 2022 18:15:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ntCaD-0003wr-AE for pgsql-general@arkaria.postgresql.org; Mon, 23 May 2022 18:15:09 +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 1ntCaC-0003wi-W1 for pgsql-general@lists.postgresql.org; Mon, 23 May 2022 18:15:08 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ntCaA-0007vt-H9 for pgsql-general@lists.postgresql.org; Mon, 23 May 2022 18:15:08 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 24NIF2Tg1304638; Mon, 23 May 2022 14:15:02 -0400 From: Tom Lane To: Rob Sargent cc: Adrian Klaver , "pgsql-generallists.postgresql.org" Subject: Re: list tablespaces named in custom format dump In-reply-to: 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> Comments: In-reply-to Rob Sargent message dated "Mon, 23 May 2022 12:04:30 -0600" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <1304636.1653329702.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Mon, 23 May 2022 14:15:02 -0400 Message-ID: <1304637.1653329702@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Rob Sargent writes: > 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 > That dump was from a version 10 server.  Any guess at how that "v1.13-0" > relates to the server version? It doesn't, it's just a more-or-less-magic identifier for the dump file's format version, with no connection to any user-visible release number. What you should try is pg_restore -f - db.dump | head which should provide some comments telling you the originating server version and pg_dump version. regards, tom lane