Re: Atomic rename feature for Windows.

From: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
To: Victor Spirin <v(dot)spirin(at)postgrespro(dot)ru>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Michael Paquier <michael(at)paquier(dot)xyz>
Subject: Re: Atomic rename feature for Windows.
Date: 2021-09-23 11:46:53
Message-ID: CA+hUKGK5tE_ybw6Nv1-7KfOp6Oosh9OzOHS2wO7kNcGSQ5Xq5A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Sep 8, 2021 at 9:40 AM Victor Spirin <v(dot)spirin(at)postgrespro(dot)ru> wrote:
> Is this code better? Maybe there is another correct method?

Hmm, if we want to use the system header's struct definition, add some
space for a path at the end, and avoid heap allocation, perhaps we
could do something like:

struct {
FILE_RENAME_INFO fri;
WCHAR extra_space[MAX_PATH];
} x;

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2021-09-23 11:51:38 Re: windows build slow due to windows.h includes
Previous Message Juan José Santamaría Flecha 2021-09-23 11:18:21 Re: Atomic rename feature for Windows.