Re: [PATCH] Atomic pgrename on Windows

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: Alexander Korotkov <a(dot)korotkov(at)postgrespro(dot)ru>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCH] Atomic pgrename on Windows
Date: 2018-01-15 02:42:30
Message-ID: 20180115024230.GH2416@tamriel.snowman.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Greetings Alexander, all,

* Alexander Korotkov (a(dot)korotkov(at)postgrespro(dot)ru) wrote:
> Attached patch atomic-pgrename-windows-1.patch fixes this problem. It
> appears to be possible to atomically replace file on Windows –
> ReplaceFile() does that. ReplaceFiles() requires target file to exist,
> this is why we still need to call MoveFileEx() when it doesn't exist.

There's been some discussion on this patch and it seems to, at least,
improve the situation on Windows even if it might not completely address
the issues. Does anyone else want to take a look and comment,
particularly those familiar with the Windows side of things? Otherwise,
I'm afraid this patch may end up just sitting in Needs review state fo
the entire CF and not getting moved forward, even though it seems like a
good improvement for our Windows users.

Thanks!

Stephen

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2018-01-15 02:45:18 Re: PATCH: psql tab completion for SELECT
Previous Message Amit Langote 2018-01-15 02:35:26 Re: [HACKERS] Useless code in ExecInitModifyTable