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 1ntBWS-000090-Br for pgsql-general@arkaria.postgresql.org; Mon, 23 May 2022 17:07:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ntBWR-0007ly-7x for pgsql-general@arkaria.postgresql.org; Mon, 23 May 2022 17:07:11 +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 1ntBWQ-0007lp-TV for pgsql-general@lists.postgresql.org; Mon, 23 May 2022 17:07:10 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ntBWO-0007I9-DH for pgsql-general@lists.postgresql.org; Mon, 23 May 2022 17:07:10 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 1E9F73200A95; Mon, 23 May 2022 13:07:06 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 23 May 2022 13:07:06 -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=1653325625; x= 1653412025; bh=VQ6qwS52CWB+k72C8g6LxcbxDabTWvOMGr1e+L6SmHU=; b=U XmjmhdhdRC11MyaWYHM8E4WoFn/DhkBeaaBL1ICQSJaDsm2BiyfkMJhBtdtGXzPf XFa8XZkqwTVVYvhty9aA60zXvvDneXlyZG5xdTyRrlKd01UJbC9EgTE8oQ8iXvfB 2XbhWZYVQWiR7fSEBxWMzndlp98ggcuFJX/rl8HTQ6qibkmENdcSMFrUCSzfv9/Z KwV5xFyzKFTuZafnoLCO0+ES9Ttc8ezdUzqEy+LMJWSKn5AFoUW6qmPjyauj/Sma YcH2a1VifbR5jj8nSKsg0RBdjSisfM3WQ0KTM/9/Tt0JilrUy3z6NZsu9/dT2RwH VTcA2V90cdHk7K7S+Iimw== 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=1653325625; x=1653412025; bh=V Q6qwS52CWB+k72C8g6LxcbxDabTWvOMGr1e+L6SmHU=; b=ryXzMnjmeFSinCC04 gRxDqbTl9HsCPHgc361cSnvrpG7r5SdzzmdY8x1ieH0jdBWJMNq/JBWws1bGPDiC 11vjyYB1tvGaU5SojvsX1cah/NYxynNBTt6ZV5/HJkGWvlxGaDZLaUiUE5GineDI CN73j7CYAdC/Eu1SqgLucQyslfXy89tcbfJyLj2TtJh7n942UqB2jwQNZEa8YbNm 7DHh4MNa5FOYKf5MWTacQDSnjWAQvPK44bdzYQWic7ia0H3lLKe663XvZ9hSKrx3 IzxWJoxd84xJHOLaLfp0WDy0JZlAI2HCOUjKuQ2oZsbFw4HYhQJ9aqZt8E2aCYM1 KVDRg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrjedugdejkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuggftrfgrthhtvghrnhepuddufeejteevffehgfduhedthfdvteekieeuheefveev udetkeelueehgeduhefhnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghenuc evlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgr nhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 23 May 2022 13:07:05 -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> From: Adrian Klaver Message-ID: <78db98f0-0e1b-d744-25fd-5390d720e2b8@aklaver.com> Date: Mon, 23 May 2022 10:07:04 -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: <2904d7b9-3bf0-fee0-f043-c8f904fc6c1d@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: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: >> >>> Roger that, but does the dump of a database name the tablespaces from >>> which the objects were retrieved? And if so, is that accessible? >>> >> >> >> https://www.postgresql.org/docs/14/app-pgrestore.html >> >> "--no-tablespaces >> >>     Do not output commands to select tablespaces. With this option, >> all objects will be created in whichever tablespace is the default >> during restore. >> " >> >> Would indicate it does. I don't have cluster set up with tablespaces >> to test, but I would try: >> >> pg_restore -l >> >> This will produce a Table of Contents for the file. >> > Ah, missed that. Thanks. > (Now I'll have to find the version used to dump the db...) If you have it just use the Postgres 14 version of pg_restore it will be able to read older files from older versions of pg_dump. -- Adrian Klaver adrian.klaver@aklaver.com