From: Tom Lane Date: Mon, 6 Nov 2006 17:10:22 +0000 (+0000) Subject: Remove temporary Windows-specific debugging code; it seems the problem X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=8e7ffb20a3fea067e897855e2fed59c92f80d34d;p=users%2Fbernd%2Fpostgres.git Remove temporary Windows-specific debugging code; it seems the problem with fopen() not using FILE_SHARE_DELETE was indeed the bug we were after, given lack of recent reports. --- diff --git a/src/backend/storage/file/fd.c b/src/backend/storage/file/fd.c index 8f22216d97..c98fd69d7a 100644 --- a/src/backend/storage/file/fd.c +++ b/src/backend/storage/file/fd.c @@ -1278,20 +1278,6 @@ TryAgain: errno = save_errno; } - /* - * TEMPORARY hack to log the Windows error code on fopen failures, in - * hopes of diagnosing some hard-to-reproduce problems. - */ -#ifdef WIN32 - { - int save_errno = errno; - - elog(LOG, "Windows fopen(\"%s\",\"%s\") failed: code %lu, errno %d", - name, mode, GetLastError(), save_errno); - errno = save_errno; - } -#endif - return NULL; }