Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hvTjZ-0004zC-2R for pgsql-bugs@arkaria.postgresql.org; Wed, 07 Aug 2019 21:44:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hvTjX-0003Ls-JP for pgsql-bugs@arkaria.postgresql.org; Wed, 07 Aug 2019 21:44:35 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hvTjX-0003Ll-8e for pgsql-bugs@lists.postgresql.org; Wed, 07 Aug 2019 21:44:35 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1hvTjU-00020W-Ta for pgsql-bugs@lists.postgresql.org; Wed, 07 Aug 2019 21:44:34 +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 x77LiUgO022989; Wed, 7 Aug 2019 17:44:30 -0400 From: Tom Lane To: c_michal@poczta.onet.pl cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15942: not working function pg_stat_file In-reply-to: <15942-58fbac022aa82a2f@postgresql.org> References: <15942-58fbac022aa82a2f@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Wed, 07 Aug 2019 20:07:27 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <22987.1565214270.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 07 Aug 2019 17:44:30 -0400 Message-ID: <22988.1565214270@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk PG Bug reporting form writes: > I create 2 GB file: > ... > (and then pg_stat_file fails on it) Yeah, this is a known problem on Windows: it provides a stat() function that fails on large files. There's been some discussion of how we might work around that, most recently here: https://www.postgresql.org/message-id/flat/1803D792815FC24D871C00D17AE9590= 5CF5099%40g01jpexmbkw24 but that hasn't been turned into a patch and you shouldn't hold your breath waiting for it to happen :-(. There's probably no chance that the eventual fix would be safe to back-patch into existing release branches, either. So ... we might have a fix for this someday, but probably not soon. It is annoying that we're just reporting "Unknown error" though. That could be improved to show something more specific without a lot of work, I imagine. regards, tom lane