Remove temporary Windows-specific debugging code; it seems the problem
authorTom Lane <[email protected]>
Mon, 6 Nov 2006 17:10:22 +0000 (17:10 +0000)
committerTom Lane <[email protected]>
Mon, 6 Nov 2006 17:10:22 +0000 (17:10 +0000)
with fopen() not using FILE_SHARE_DELETE was indeed the bug we were after,
given lack of recent reports.

src/backend/storage/file/fd.c

index 8f22216d9745cd11df3ab45d327b48c708f8393a..c98fd69d7ae6e1855577ad28795d7c32a8ead380 100644 (file)
@@ -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;
 }