From kobruleht2@hot.ee Wed Feb 8 15:00:10 2023 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 1pPlvr-0007Xy-7j for pgsql-general@arkaria.postgresql.org; Wed, 08 Feb 2023 15:00:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pPlvp-0004wP-Na for pgsql-general@arkaria.postgresql.org; Wed, 08 Feb 2023 15:00:21 +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 1pPlvp-0004wG-Bz for pgsql-general@lists.postgresql.org; Wed, 08 Feb 2023 15:00:21 +0000 Received: from portal-smtp-out.hot.ee ([194.126.101.125]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pPlvh-00075j-SF for pgsql-general@postgresql.org; Wed, 08 Feb 2023 15:00:20 +0000 Received: from localhost (localhost [127.0.0.1]) by vm-hot-relay10.estpak.ee (Postfix) with ESMTP id 75EBC253D for ; Wed, 8 Feb 2023 17:00:09 +0200 (EET) X-Virus-Scanned: Debian amavisd-new at vm-hot-relay10.estpak.ee Received: from portal-smtp-out.hot.ee ([127.0.0.1]) by localhost (vm-hot-relay10.estpak.ee [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BnhRypaCQ-Eo for ; Wed, 8 Feb 2023 17:00:07 +0200 (EET) Received: from mail.hot.ee (hot-relayhost3.estpak.ee [213.180.2.81]) by vm-hot-relay10.estpak.ee (Postfix) with ESMTP id 3D146249A for ; Wed, 8 Feb 2023 17:00:07 +0200 (EET) Content-Type: multipart/alternative; boundary="------------yhPz8J2Fv1liWd5StkeKLG7K" Message-ID: Date: Wed, 8 Feb 2023 17:00:10 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Content-Language: et To: pgsql-general From: Andrus Subject: How to create directory format backup List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------yhPz8J2Fv1liWd5StkeKLG7K Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi! Creating backup in directory format using     pg_dump -f "sba" -Fdirectory --jobs=32 --verbose sba throws error     pg_dump: error: could not stat file "sba/282168.data.gz": value too large How to fix it ? Server is Postgres 12 running in Debian Linux 10 under WSL Client is pg_dump from Postgres 15 running in Windows 11 Andrus --------------yhPz8J2Fv1liWd5StkeKLG7K Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Hi!

Creating backup in directory format using

    pg_dump -f "sba" -Fdirectory --jobs=32 --verbose sba

throws error

    pg_dump: error: could not stat file "sba/282168.data.gz": value too large

How to fix it ?

Server is Postgres 12 running in Debian Linux 10 under WSL
Client is pg_dump from Postgres 15 running in Windows 11

Andrus

--------------yhPz8J2Fv1liWd5StkeKLG7K-- From depesz@depesz.com Wed Feb 8 17:59:26 2023 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 1pPojI-0005tc-LI for pgsql-general@arkaria.postgresql.org; Wed, 08 Feb 2023 17:59:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pPojH-0001mI-Ho for pgsql-general@arkaria.postgresql.org; Wed, 08 Feb 2023 17:59:35 +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 1pPojH-0001m9-4a for pgsql-general@lists.postgresql.org; Wed, 08 Feb 2023 17:59:35 +0000 Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pPojC-0000Fp-GR for pgsql-general@postgresql.org; Wed, 08 Feb 2023 17:59:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com; s=20170201; h=In-Reply-To:Content-Transfer-Encoding:Content-Type:MIME-Version :References:Reply-To:Message-ID:Subject:Cc:To:Sender:From:Date:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=c8rjYt/GeRS2EEQefkC/Jr53XVyqP3TLbBfckB8QMZg=; b=AuAklo+0/BreN9WxG8c4G1atLG zgBeNBpcbKnUamgWgmf3iudu1FNTl0CS3BNCMtwEzEiaTcQilQ6dFXhjRLgNe0MG1FuMFgXaL2JGZ Di23X5eBWwQeJ+QnjosU5CBJJfoI2dItU+2ynUEoKbBEQzQqvbzschbqLOZcZK+/oH/Q=; Received: from depesz by depesz.com with local (Exim 4.94.2) (envelope-from ) id 1pPoj8-00DaUY-UU; Wed, 08 Feb 2023 18:59:26 +0100 Date: Wed, 8 Feb 2023 18:59:26 +0100 From: hubert depesz lubaczewski Sender: depesz@depesz.com To: Andrus Cc: pgsql-general Subject: Re: How to create directory format backup Message-ID: Reply-To: depesz@depesz.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Feb 08, 2023 at 05:00:10PM +0200, Andrus wrote: > Hi! > > Creating backup in directory format using > >     pg_dump -f "sba" -Fdirectory --jobs=32 --verbose sba > > throws error > >     pg_dump: error: could not stat file "sba/282168.data.gz": value too > large > > How to fix it ? > > Server is Postgres 12 running in Debian Linux 10 under WSL > Client is pg_dump from Postgres 15 running in Windows 11 Looks like your filesystem on client is having limits on file sizes. Use better filesystem, or just dump on linux, it's filesystems usually don't hit these limits. Best regards, depesz From kobruleht2@hot.ee Wed Feb 8 20:59:43 2023 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 1pPrXm-0003e3-La for pgsql-general@arkaria.postgresql.org; Wed, 08 Feb 2023 20:59:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pPrXj-0003Nb-Ee for pgsql-general@arkaria.postgresql.org; Wed, 08 Feb 2023 20:59:51 +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 1pPrXj-0003NS-2y for pgsql-general@lists.postgresql.org; Wed, 08 Feb 2023 20:59:51 +0000 Received: from portal-smtp-out.hot.ee ([194.126.101.125]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pPrXc-00035c-4v for pgsql-general@postgresql.org; Wed, 08 Feb 2023 20:59:50 +0000 Received: from localhost (localhost [127.0.0.1]) by vm-hot-relay10.estpak.ee (Postfix) with ESMTP id C7BE231B5; Wed, 8 Feb 2023 22:59:42 +0200 (EET) X-Virus-Scanned: Debian amavisd-new at vm-hot-relay10.estpak.ee Received: from portal-smtp-out.hot.ee ([127.0.0.1]) by localhost (vm-hot-relay10.estpak.ee [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id a98KlsX1WWYN; Wed, 8 Feb 2023 22:59:40 +0200 (EET) Received: from mail.hot.ee (hot-relayhost2.estpak.ee [213.180.2.80]) by vm-hot-relay10.estpak.ee (Postfix) with ESMTP id 3BBCE319A; Wed, 8 Feb 2023 22:59:40 +0200 (EET) Content-Type: multipart/alternative; boundary="------------BfZC2gYhnqpkRLX85SkZmzGZ" Message-ID: <6da54c55-6752-ca53-cdc8-2342b2c75258@hot.ee> Date: Wed, 8 Feb 2023 22:59:43 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: How to create directory format backup Content-Language: et To: depesz@depesz.com Cc: pgsql-general References: From: Andrus In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------BfZC2gYhnqpkRLX85SkZmzGZ Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi! >Looks like your filesystem on client is having limits on file sizes. Use better filesystem, or just dump on linux, it's filesystems usually don't hit these limits. This file size is only 6.2 GB. If custom format is used, pg_dump creates large file without problems. There are no file size limits. Error message is not about this. Backup client is running in Windows 11 and this cannot changed. How to create backup in format from which tables can selectively restored? Posted also in https://stackoverflow.com/questions/75387616/how-to-make-directory-format-backup Andrus. --------------BfZC2gYhnqpkRLX85SkZmzGZ Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi!

>Looks like your filesystem on client is having limits on file sizes. Use better filesystem, or just dump on linux, it's filesystems usually don't hit these limits.

This file size is only 6.2 GB. If custom format is used, pg_dump creates large file without problems. There are no file size limits. Error message is not about this.

Backup client is running in Windows 11 and this cannot changed.

How to create backup in format from which tables can selectively restored?

Posted also in https://stackoverflow.com/questions/75387616/how-to-make-directory-format-backup

Andrus.


--------------BfZC2gYhnqpkRLX85SkZmzGZ-- From ewie@ewie.name Wed Feb 8 21:17:58 2023 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 From kobruleht2@hot.ee Wed Feb 8 21:37:26 2023 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 1pPs8J-00051u-D0 for pgsql-general@arkaria.postgresql.org; Wed, 08 Feb 2023 21:37:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pPs8H-000060-QX for pgsql-general@arkaria.postgresql.org; Wed, 08 Feb 2023 21:37:37 +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 1pPs8H-0008VB-F7 for pgsql-general@lists.postgresql.org; Wed, 08 Feb 2023 21:37:37 +0000 Received: from portal-smtp-out.hot.ee ([194.126.101.125]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pPs89-0002CQ-Rc for pgsql-general@postgresql.org; Wed, 08 Feb 2023 21:37:36 +0000 Received: from localhost (localhost [127.0.0.1]) by vm-hot-relay10.estpak.ee (Postfix) with ESMTP id 0BF73319A; Wed, 8 Feb 2023 23:37:27 +0200 (EET) X-Virus-Scanned: Debian amavisd-new at vm-hot-relay10.estpak.ee Received: from portal-smtp-out.hot.ee ([127.0.0.1]) by localhost (vm-hot-relay10.estpak.ee [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TkUy7xT5UVbf; Wed, 8 Feb 2023 23:37:24 +0200 (EET) Received: from mail.hot.ee (hot-relayhost3.estpak.ee [213.180.2.81]) by vm-hot-relay10.estpak.ee (Postfix) with ESMTP id C90EA31BD; Wed, 8 Feb 2023 23:37:24 +0200 (EET) Content-Type: multipart/alternative; boundary="------------AuSxFltrspHfdDlULlGR3c7k" Message-ID: <6422167c-c725-d305-5ee5-d16f310e7fc7@hot.ee> Date: Wed, 8 Feb 2023 23:37:26 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: How to create directory format backup Content-Language: et To: Erik Wienhold , depesz@depesz.com Cc: pgsql-general References: <6da54c55-6752-ca53-cdc8-2342b2c75258@hot.ee> <531831758.189866.1675891078338@office.mailbox.org> From: Andrus In-Reply-To: <531831758.189866.1675891078338@office.mailbox.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------AuSxFltrspHfdDlULlGR3c7k Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi! >> 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. How to select tables interactively like pgAdmin allows to select when directory format is used ? Database contains hundreds of schemas. I need to restore public and other other schema. Whole backup file is scanned to restore only two schemas. It takes lot of time. Also directory format allows to use all cores with --jobs=32 parameter. Dump and partial restore using custom format are much slower. Andrus. > -- > Erik --------------AuSxFltrspHfdDlULlGR3c7k Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Hi!


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.

How to select tables interactively like pgAdmin allows to select when directory format is used ?

Database contains hundreds of schemas. I need to restore public and other other schema.

Whole backup file is scanned to restore only two schemas. It takes lot of time.

Also directory format allows to use all cores with --jobs=32 parameter. Dump and partial restore using custom format are much slower.

Andrus.


--
Erik
--------------AuSxFltrspHfdDlULlGR3c7k-- From ewie@ewie.name Wed Feb 8 22:45:04 2023 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 1pPtBj-0007Dt-Nk for pgsql-general@arkaria.postgresql.org; Wed, 08 Feb 2023 22:45:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pPtBi-0007iD-9n for pgsql-general@arkaria.postgresql.org; Wed, 08 Feb 2023 22:45:14 +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 1pPtBh-0007hy-VW for pgsql-general@lists.postgresql.org; Wed, 08 Feb 2023 22:45:13 +0000 Received: from mout-u-204.mailbox.org ([2001:67c:2050:101:465::204]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pPtBf-0002zF-JC for pgsql-general@postgresql.org; Wed, 08 Feb 2023 22:45:12 +0000 Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (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 4PBw752bM9z9sZK; Wed, 8 Feb 2023 23:45:05 +0100 (CET) Date: Wed, 8 Feb 2023 23:45:04 +0100 (CET) From: Erik Wienhold To: Andrus , depesz@depesz.com Cc: pgsql-general Message-ID: <1169630167.178680.1675896304462@office.mailbox.org> In-Reply-To: <6422167c-c725-d305-5ee5-d16f310e7fc7@hot.ee> References: <6da54c55-6752-ca53-cdc8-2342b2c75258@hot.ee> <531831758.189866.1675891078338@office.mailbox.org> <6422167c-c725-d305-5ee5-d16f310e7fc7@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 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 08/02/2023 22:37 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. > > > How to select tables interactively like pgAdmin allows to select when > directory format is used ? > > Database contains hundreds of schemas. I need to restore public and other > other schema. > > Whole backup file is scanned to restore only two schemas. It takes lot of > time. pg_dump also accepts options --table and --schema to only dump what you need. > Also directory format allows to use all cores with --jobs=32 parameter. > Dump and partial restore using custom format are much slower. Run multiple pg_dump processes in parallel where each processes a subset of tables with the options mentioned above. -- Erik From tgl@sss.pgh.pa.us Wed Feb 8 22:57:04 2023 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 1pPtNO-0007Zg-Ry for pgsql-general@arkaria.postgresql.org; Wed, 08 Feb 2023 22:57: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 1pPtNN-0001S3-MZ for pgsql-general@arkaria.postgresql.org; Wed, 08 Feb 2023 22:57:17 +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 1pPtNN-0001Rt-CF for pgsql-general@lists.postgresql.org; Wed, 08 Feb 2023 22:57:17 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pPtNL-00035a-7x for pgsql-general@postgresql.org; Wed, 08 Feb 2023 22:57:16 +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 318Mv4UK3792685; Wed, 8 Feb 2023 17:57:04 -0500 From: Tom Lane To: Andrus cc: depesz@depesz.com, pgsql-general Subject: Re: How to create directory format backup In-reply-to: <6da54c55-6752-ca53-cdc8-2342b2c75258@hot.ee> References: <6da54c55-6752-ca53-cdc8-2342b2c75258@hot.ee> Comments: In-reply-to Andrus message dated "Wed, 08 Feb 2023 22:59:43 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3792683.1675897024.1@sss.pgh.pa.us> Date: Wed, 08 Feb 2023 17:57:04 -0500 Message-ID: <3792684.1675897024@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andrus writes: > This file size is only 6.2 GB. If custom format is used, pg_dump creates > large file without problems. There are no file size limits. Error > message is not about this. Are you certain that the pg_dump you're using is v15, and not something pre-v14? We got rid of the 4GB limit on stat() results in v14, or so we thought. Anyway, as far as I can find pg_dump can only reach that error message via fsync_dir_recurse(), which suggests that a workaround might be to add --no-sync so it doesn't try to fsync its output. regards, tom lane