Re: Atomic rename feature for Windows.

Поиск
Список
Период
Сортировка
От Victor Spirin
Тема Re: Atomic rename feature for Windows.
Дата
Msg-id 538e7640-da86-8e84-b990-0889736b31a0@postgrespro.ru
обсуждение исходный текст
Ответ на Re: Atomic rename feature for Windows.  (Thomas Munro <thomas.munro@gmail.com>)
Список pgsql-hackers
Thank you,

Fixed FILE_RENAME_INFO structure

I prepared 2 versions of the patch:

1) with manifest and IsWindows10OrGreater() function
2) without manifest and RtlGetVersion function from ntdll.dll

What's better?

Victor Spirin
Postgres Professional:http://www.postgrespro.com
The Russian Postgres Company

23.09.2021 14:46, Thomas Munro пишет:
> 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 по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: 002_types.pl fails on some timezones on windows
Следующее
От: Robert Haas
Дата:
Сообщение: Re: [Patch] ALTER SYSTEM READ ONLY