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
-
Fix pg_truncate() on Windows.
- af209b7893f4 14.7 landed
- f60acde86998 15.2 landed
- 72aea955d497 16.0 landed