postgresql/src
Heikki Linnakangas 4e2d5efc6a On Windows, when a file is deleted and another process still has an open
file handle on it, the file goes into "pending deletion" state where it
still shows up in directory listing, but isn't accessible otherwise. That
confuses RemoveOldXLogFiles(), making it think that the file hasn't been
archived yet, while it actually was, and it was deleted along with the .done
file.

Fix that by renaming the file with ".deleted" extension before deleting it.
Also check the return value of rename() and unlink(), so that if the removal
fails for any reason (e.g another process is holding the file locked), we
don't delete the .done file until the WAL file is really gone.

Backpatch to 8.2, which is the oldest version supported on Windows.
2009-09-10 09:42:10 +00:00
..
backend On Windows, when a file is deleted and another process still has an open 2009-09-10 09:42:10 +00:00
bin Change our WIN32 API version to be 5.01 (Windows XP), to bring in the proper 2009-09-07 11:22:12 +00:00
include Fix/improve bytea and boolean support in PL/Python 2009-09-09 19:00:09 +00:00
interfaces Remove outside-the-scanner references to "yyleng". 2009-09-08 04:25:00 +00:00
makefiles Update of install-sh, mkinstalldirs, and associated configury 2009-08-26 22:24:44 +00:00
pl Fix/improve bytea and boolean support in PL/Python 2009-09-09 19:00:09 +00:00
port Update of install-sh, mkinstalldirs, and associated configury 2009-08-26 22:24:44 +00:00
template Tweak configure to attempt to add -qnoansialias to CFLAGS whenever running 2009-02-11 20:02:40 +00:00
test Fix bug with WITH RECURSIVE immediately inside WITH RECURSIVE. 99% of the 2009-09-09 03:32:52 +00:00
timezone Update the tznames reference files, and add IDT (Israel Daylight Time) 2009-09-06 15:25:23 +00:00
tools Remove handling of CVS entries for TODO/FAQ, because they are removed 2009-08-29 17:09:20 +00:00
tutorial 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00
bcc32.mak Remove old-style win32 client-only visual c++ build infrastructure for everything except 2007-03-05 14:18:38 +00:00
DEVELOPERS Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile Update of install-sh, mkinstalldirs, and associated configury 2009-08-26 22:24:44 +00:00
Makefile.global.in Update of install-sh, mkinstalldirs, and associated configury 2009-08-26 22:24:44 +00:00
Makefile.shlib Derived files that are shipped in the distribution used to be built in the 2009-08-28 20:26:19 +00:00
nls-global.mk Update of install-sh, mkinstalldirs, and associated configury 2009-08-26 22:24:44 +00:00
win32.mak Update supported standalone VC++ version to 7.1+ only, and fix 2007-08-03 10:47:11 +00:00