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 1ntDGw-0006Jf-4A for pgsql-general@arkaria.postgresql.org; Mon, 23 May 2022 18:59:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ntDGs-0008TZ-Ry for pgsql-general@arkaria.postgresql.org; Mon, 23 May 2022 18:59:14 +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 1ntDGr-0008TQ-8f for pgsql-general@lists.postgresql.org; Mon, 23 May 2022 18:59:14 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ntDGn-0008FX-9k for pgsql-general@lists.postgresql.org; Mon, 23 May 2022 18:59:12 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 313623200941; Mon, 23 May 2022 14:59:05 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 23 May 2022 14:59:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc: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=1653332344; x= 1653418744; bh=8ZdUtwZrfptwj0Fki3Uk5BG5k43nVWgfHQWLlPx0nN8=; b=O vmVEW14oCcfd498ou1XQaLvlOhcaZAjNlMacRU6f79Rl3ZE0MMVT8HRbCG9vGI8n 5U0uch+rx+12zYdyYF+pzgaRyHGnUuhhomsibis/opKJXdpWWNvnvu3KXlBqNNWV QcmaiJVrfVRfrIGB7uYScmgg3h035y/j8FUK13jmzYo37OY6kBCu9Imww7qzkEkJ 4/iz6OlBCn+qn/x3IcmIZcOJxDpLx/oycaAfhqbltKJdUGveafphByCGKPAIetAe 3Qwso4sW+f7XOZhEzxP8T9afIHYIupwtfm/J8hCOR05y6WfwvliM3aqSv5TSqBRC o1cdUeHhCuDUYtmDqE9Jg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=1653332344; x= 1653418744; bh=8ZdUtwZrfptwj0Fki3Uk5BG5k43nVWgfHQWLlPx0nN8=; b=K C9vIGKBuw+5gHORqr5JSoxOMkOIxdfxpTOXOk/x4yJWPzIH1XoaAJmgXuH+UtJnC weNo441iO3NAFD5aqJ7YPXmi524va42zVzcCPdHqbUcuGBXy4pMUvrUodpE08eR2 rC6fUfKJPNVxJKHLNhh3pHqx9uMZiesp/HZJXaQkn6xyTdVUulNVDmliECRahaWY 8MME+A+G21c3/sHrGt2VFaMPhh4m9Jcz+2gXakBMNdF7E5UahmSDv5OTHCWsuA7D UR5XEj2ZXSZgs/U9SCHFa++ZsScgc7AIjJJcJC4f1Y9KLcME8TDHDOw10T6c9iQY lb6Kh6iSk6XnjRr8H4tMg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrjedugddutdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughr ihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homheqnecuggftrfgrthhtvghrnhephedugfethfettdehieevteeukedtjedvhfevkefg udefgeevteduvdeuvdeggeegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 23 May 2022 14:59:03 -0400 (EDT) Message-ID: <756c6a6f-08c0-39f3-a697-516ee3acd77c@aklaver.com> Date: Mon, 23 May 2022 11:59:03 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: list tablespaces named in custom format dump Content-Language: en-US To: Rob Sargent , Tom Lane Cc: "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> <1304637.1653329702@sss.pgh.pa.us> <4592d00b-23e9-3982-84f7-c376932ac5cc@gmail.com> From: Adrian Klaver In-Reply-To: <4592d00b-23e9-3982-84f7-c376932ac5cc@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed 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:31, Rob Sargent wrote: > On 5/23/22 12:15, Tom Lane wrote: >> >> pg_restore -f - db.dump | head >> >> which should provide some comments telling you the originating >> server version and pg_dump version. >> >> regards, tom lane > > OK, back to reality: version 10 dump. > > The output of from head command is very different that Adrian shows but > I'm still left giving pg_restore(14) a shot.  Getting older server will > be challenging. Different view of the information. pg_restore -l has more detail, but all you are interested in is this: -- Dumped from database version 14.2 -- Dumped by pg_dump version 14.2 anyway. As to older version, how are you installing Postgres? > > Much appreciated, > rjs > > -- Adrian Klaver adrian.klaver@aklaver.com