Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fqK9r-0007Cp-RM for pgsql-bugs@arkaria.postgresql.org; Thu, 16 Aug 2018 15:25:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fqK9p-00011g-HZ for pgsql-bugs@arkaria.postgresql.org; Thu, 16 Aug 2018 15:25:53 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fqK9p-00011X-88 for pgsql-bugs@lists.postgresql.org; Thu, 16 Aug 2018 15:25:53 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fqK9i-0007oP-Lk for pgsql-bugs@lists.postgresql.org; Thu, 16 Aug 2018 15:25:52 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w7GFPjkP013612; Thu, 16 Aug 2018 11:25:45 -0400 From: Tom Lane To: mark.lai@integrafec.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15333: pg_dump error on large table -- "pg_dump: could not stat file...Unknown error" In-reply-to: <153442391458.1505.9181095584291689853@wrigleys.postgresql.org> References: <153442391458.1505.9181095584291689853@wrigleys.postgresql.org> Comments: In-reply-to =?utf-8?q?PG_Bug_reporting_form?= message dated "Thu, 16 Aug 2018 12:51:54 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <13610.1534433145.1@sss.pgh.pa.us> Date: Thu, 16 Aug 2018 11:25:45 -0400 Message-ID: <13611.1534433145@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk =?utf-8?q?PG_Bug_reporting_form?= writes: > When I pg_dump a large table (> 35 GB), I get the following error message: > pg_dump: could not stat file > "O:\postgres-server3\test#test#large_test/2793.dat.gz": Unknown error > The dump however appears to restore correctly. Hm, I assume this shows up just at the end of the dump run? The only plausible match for that error string is in the fsync_dir_recurse() processing that tries to force all the output files down to disk before reporting that the dump is complete. As long as you don't have an OS crash right afterwards, failure to fsync is harmless. Still, it's weird. Does it vary with the size of the dumped table? What if you remove the parallelism (no --jobs option)? regards, tom lane