Re: Atomic rename feature for Windows.

Поиск
Список
Период
Сортировка
Искать
От
Victor Spirin
Тема
Re: Atomic rename feature for Windows.
Дата
Msg-id
7c840040-e463-4622-708c-c75a1ccc2e5e@postgrespro.ru
Ответ на
Список
Дерево обсуждения
Atomic rename feature for Windows. Victor Spirin <v.spirin@postgrespro.ru>
Re: Atomic rename feature for Windows. Victor Spirin <v.spirin@postgrespro.ru>
Re: Atomic rename feature for Windows. Thomas Munro <thomas.munro@gmail.com>
Re: Atomic rename feature for Windows. Ian Lawrence Barwick <barwick@gmail.com>
Re: Atomic rename feature for Windows. Victor Spirin <v.spirin@postgrespro.ru>
Re: Atomic rename feature for Windows. Victor Spirin <v.spirin@postgrespro.ru>
Re: Atomic rename feature for Windows. Victor Spirin <v.spirin@postgrespro.ru>
Re: Atomic rename feature for Windows. Michael Paquier <michael@paquier.xyz>
Re: Atomic rename feature for Windows. Victor Spirin <v.spirin@postgrespro.ru>
Re: Atomic rename feature for Windows. Victor Spirin <v.spirin@postgrespro.ru>
Re: Atomic rename feature for Windows. Thomas Munro <thomas.munro@gmail.com>
Re: Atomic rename feature for Windows. Victor Spirin <v.spirin@postgrespro.ru>
Re: Atomic rename feature for Windows. Thomas Munro <thomas.munro@gmail.com>
Re: Atomic rename feature for Windows. Victor Spirin <v.spirin@postgrespro.ru>
Re: Atomic rename feature for Windows. Juan José Santamaría Flecha <juanjo.santamaria@gmail.com>
Re: Atomic rename feature for Windows. Victor Spirin <v.spirin@postgrespro.ru>
Re: Atomic rename feature for Windows. Juan José Santamaría Flecha <juanjo.santamaria@gmail.com>
Re: Atomic rename feature for Windows. Victor Spirin <v.spirin@postgrespro.ru>
Re: Atomic rename feature for Windows. Juan José Santamaría Flecha <juanjo.santamaria@gmail.com>
Re: Atomic rename feature for Windows. Thomas Munro <thomas.munro@gmail.com>
Re: Atomic rename feature for Windows. Thomas Munro <thomas.munro@gmail.com>
Re: Atomic rename feature for Windows. Tom Lane <tgl@sss.pgh.pa.us>
Re: Atomic rename feature for Windows. Greg Stark <stark@mit.edu>
Re: Atomic rename feature for Windows. Robert Haas <robertmhaas@gmail.com>
Re: Atomic rename feature for Windows. Greg Stark <stark@mit.edu>
Re: Atomic rename feature for Windows. Robert Haas <robertmhaas@gmail.com>
Re: Atomic rename feature for Windows. Michael Paquier <michael@paquier.xyz>
Re: Atomic rename feature for Windows. Robert Haas <robertmhaas@gmail.com>
Re: Atomic rename feature for Windows. Tom Lane <tgl@sss.pgh.pa.us>
Re: Atomic rename feature for Windows. Andres Freund <andres@anarazel.de>
Re: Atomic rename feature for Windows. Tom Lane <tgl@sss.pgh.pa.us>
Re: Atomic rename feature for Windows. Robert Haas <robertmhaas@gmail.com>
Re: Atomic rename feature for Windows. Andres Freund <andres@anarazel.de>
Re: Atomic rename feature for Windows. Robert Haas <robertmhaas@gmail.com>
Re: Atomic rename feature for Windows. Michael Paquier <michael@paquier.xyz>
Re: Atomic rename feature for Windows. Thomas Munro <thomas.munro@gmail.com>
Hi

Added the pgunlink_windows_posix_semantics function and modified the 
pgunlink function

I used FILE_DISPOSITION_POSIX_SEMANTICS flag for unlink files on Windows 
10 (1607) and above.


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

05.07.2021 16:53, Victor Spirin пишет:
> Hi
>
> I used the SetFileInformationByHandle function with the 
> FILE_RENAME_FLAG_POSIX_SEMANTICS flag for the file rename function..
>
> 1) The _WIN32_WINNT variable needs to be increased to 0x0A00 (Windows 
> 10).  Fixed conflict with #undef CHECKSUM_TYPE_NONE
>
> 2) The SetFileInformationByHandle function works correctly only on 
> Windows 10 and higher.
>
> The app must have a manifest to check the Windows version using the 
> IsWindows10OrGreater() function. I added a manifest to all postgres 
> projects and disabled the GenerateManifest option on windows projects.
>
> This patch related to this post: 
> https://www.postgresql.org/message-id/CAEepm%3D0FV-k%2B%3Dd9z08cW%3DZXoR1%3Dkw9wdpkP6WAuOrKJdz-8ujg%40mail.gmail.com
>
>
В списке pgsql-hackers по дате отправления
От: Daniel Gustafsson
Дата:
От: Dagfinn Ilmari Mannsåker
Дата:
FAQ