postgresql/src/backend/storage
Tom Lane 8e6b4ee21f Don't trust CreateFileMapping() to clear the error code on success.
We must test GetLastError() even when CreateFileMapping() returns a
non-null handle.  If that value were left over from some previous system
call, we might be fooled into thinking the segment already existed.
Experimentation on Windows 7 suggests that CreateFileMapping() clears
the error code on success, but it is not documented to do so, so let's
not rely on that happening in all Windows releases.

Amit Kapila

Discussion: <20811.1474390987@sss.pgh.pa.us>
2016-09-23 10:09:52 -04:00
..
buffer Add debug check function LWLockHeldByMeInMode() 2016-09-05 10:38:08 +01:00
file Add macros to make AllocSetContextCreate() calls simpler and safer. 2016-08-27 17:50:38 -04:00
freespace pgindent run for 9.6 2016-06-09 18:02:36 -04:00
ipc Don't trust CreateFileMapping() to clear the error code on success. 2016-09-23 10:09:52 -04:00
large_object Update copyright for 2016 2016-01-02 13:33:40 -05:00
lmgr Add debug check function LWLockHeldByMeInMode() 2016-09-05 10:38:08 +01:00
page Rewrite PageIndexDeleteNoCompact into a form that only deletes 1 tuple. 2016-09-09 19:00:59 -04:00
smgr Improve scalability of md.c for large relations. 2016-09-08 17:18:46 -07:00
Makefile Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00