From: Tom Lane <tgl@sss.pgh.pa.us>
To: c_michal@poczta.onet.pl
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15942: not working function pg_stat_file
Date: Wed, 07 Aug 2019 17:44:30 -0400
Message-ID: <22988.1565214270@sss.pgh.pa.us> (raw)
In-Reply-To: <15942-58fbac022aa82a2f@postgresql.org>
References: <15942-58fbac022aa82a2f@postgresql.org>
PG Bug reporting form <noreply@postgresql.org> 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/1803D792815FC24D871C00D17AE95905CF5099%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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, c_michal@poczta.onet.pl
Subject: Re: BUG #15942: not working function pg_stat_file
In-Reply-To: <22988.1565214270@sss.pgh.pa.us>
References: <15942-58fbac022aa82a2f@postgresql.org> <22988.1565214270@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox