On Wed, Nov 21, 2018 at 5:43 PM Thomas Munro <thomas.mu...@enterprisedb.com> wrote: > Googling led me to some recently posted clues on SO and elsewhere > about a flag FILE_RENAME_FLAG_POSIX_SEMANTICS which can be used with > SetFileInformationByHandle(), that wasn't mentioned in the earlier > -hackers threads. I tried it on AppVeyor. It appears to work, even > when both source and target file name exist and both files currently > have an open handle. Perhaps they needed this for the Windows 10 WSL > stuff?
Erm, looks like I posted too soon. My 5 minute hack didn't check the return code correctly (it's zero for failure). Oh well. I don't actually plan to investigate this any further myself, being non-Windows-enabled, but it looks like there might still be something promising here. -- Thomas Munro http://www.enterprisedb.com