Re: Atomic rename feature for Windows. - Mailing list pgsql-hackers

From Thomas Munro
Subject Re: Atomic rename feature for Windows.
Date
Msg-id CA+hUKGK5tE_ybw6Nv1-7KfOp6Oosh9OzOHS2wO7kNcGSQ5Xq5A@mail.gmail.com
Whole thread Raw
In response to Re: Atomic rename feature for Windows.  (Victor Spirin <v.spirin@postgrespro.ru>)
Responses Re: Atomic rename feature for Windows.  (Victor Spirin <v.spirin@postgrespro.ru>)
List pgsql-hackers
On Wed, Sep 8, 2021 at 9:40 AM Victor Spirin <v.spirin@postgrespro.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;



pgsql-hackers by date:

Previous
From: Juan José Santamaría Flecha
Date:
Subject: Re: Atomic rename feature for Windows.
Next
From: Aleksander Alekseev
Date:
Subject: Re: mark the timestamptz variant of date_bin() as stable