Re: pg_ftruncate hardcodes length=0 but only under windows

Thomas Munro <thomas.munro@gmail.com>

From: Thomas Munro <thomas.munro@gmail.com>
To: Justin Pryzby <pryzby@telsasoft.com>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2023-01-06T04:07:23Z
Lists: pgsql-hackers
On Fri, Jan 6, 2023 at 4:16 PM Justin Pryzby <pryzby@telsasoft.com> wrote:
> -               ret = ftruncate(fd, 0);
> +               ret = ftruncate(fd, length);

Oops.  Right.  Thanks, pushed.



Commits

  1. Fix pg_truncate() on Windows.