Fix Windows-specific race condition in syslogger. This could've been
authorHeikki Linnakangas <heikki@enterprisedb.com>
Wed, 18 Mar 2009 08:44:52 +0000 (08:44 +0000)
committerHeikki Linnakangas <heikki@enterprisedb.com>
Wed, 18 Mar 2009 08:44:52 +0000 (08:44 +0000)
commitbfee71fa3ac057fbde5963dbdc353a09cc2ba9c1
tree6c0fae74496f2d525743a2a792dd0302b771a4c9
parent5f43ce4c561100fa98dc77966179e6a481760243
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