Re: pg_ftruncate hardcodes length=0 but only under windows

From: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
To: Justin Pryzby <pryzby(at)telsasoft(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: pg_ftruncate hardcodes length=0 but only under windows
Date: 2023-01-06 04:07:23
Message-ID: CA+hUKG+if7Lff8eHNvA8MidTvOfyPXRY077f8mTmH0D2Q-9RNw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Jan 6, 2023 at 4:16 PM Justin Pryzby <pryzby(at)telsasoft(dot)com> wrote:
> - ret = ftruncate(fd, 0);
> + ret = ftruncate(fd, length);

Oops. Right. Thanks, pushed.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message houzj.fnst@fujitsu.com 2023-01-06 04:07:49 RE: Perform streaming logical transactions by background workers and parallel apply
Previous Message houzj.fnst@fujitsu.com 2023-01-06 03:54:53 Notify downstream to discard the streamed transaction which was aborted due to crash.