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 1pPrpQ-0004H4-Nf for pgsql-general@arkaria.postgresql.org; Wed, 08 Feb 2023 21:18:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pPrpP-000309-KE for pgsql-general@arkaria.postgresql.org; Wed, 08 Feb 2023 21:18:07 +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 1pPrpP-0002zy-AA for pgsql-general@lists.postgresql.org; Wed, 08 Feb 2023 21:18:07 +0000 Received: from mout-u-204.mailbox.org ([2001:67c:2050:101:465::204]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pPrpK-0003Ep-Un for pgsql-general@postgresql.org; Wed, 08 Feb 2023 21:18:06 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-204.mailbox.org (Postfix) with ESMTPS id 4PBtBb0Zsqz9sZM; Wed, 8 Feb 2023 22:17:59 +0100 (CET) Date: Wed, 8 Feb 2023 22:17:58 +0100 (CET) From: Erik Wienhold To: Andrus , depesz@depesz.com Cc: pgsql-general Message-ID: <531831758.189866.1675891078338@office.mailbox.org> In-Reply-To: <6da54c55-6752-ca53-cdc8-2342b2c75258@hot.ee> References: <6da54c55-6752-ca53-cdc8-2342b2c75258@hot.ee> Subject: Re: How to create directory format backup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal X-Rspamd-Queue-Id: 4PBtBb0Zsqz9sZM List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 08/02/2023 21:59 CET Andrus wrote: > > How to create backup in format from which tables can selectively restored? Dump as custom-format archive (-F custom) and use that with pg_restore and options --table or --list/--use-list to select what should be restored. -- Erik