Fix Windows-specific race condition in syslogger. This could've been
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 18 Mar 2009 08:44:49 +0000 (08:44 +0000)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 18 Mar 2009 08:44:49 +0000 (08:44 +0000)
commit8e1a8fe2886c4e373f8ddd6262c2832ffcea9194
treea970fa54a5226868efde24061fb25921f9c733c4
parent029348cff90e7d6d7e2ccd135de3720eabf7dac2
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.
src/backend/postmaster/syslogger.c