Fix Windows-specific race condition in syslogger. This could've been

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 8e1a8fe2886c4e373f8ddd6262c2832ffcea9194
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2009-03-18T08:44:49Z
Releases: 8.4.0
Fix Windows-specific race condition in syslogger. This could've been
the cause of the "could not write to log file: Bad file descriptor"
errors reported at
http://archives.postgresql.org//pgsql-general/2008-06/msg00193.php

Backpatch to 8.3, the race condition was introduced by the CSV logging
patch.

Analysis and patch by Gurjeet Singh.

Files

PathChange+/−
src/backend/postmaster/syslogger.c modified +7 −6