Windows: use GetSystemTimePreciseAsFileTime if available
authorSimon Riggs <[email protected]>
Mon, 8 Dec 2014 14:36:06 +0000 (23:36 +0900)
committerSimon Riggs <[email protected]>
Mon, 8 Dec 2014 14:36:06 +0000 (23:36 +0900)
commit8001fe67a3d66c95861ce1f7075ef03953670d13
tree8d819778758fb45180ef8cdc468b3c2809cefbe9
parent519b0757a37254452e013ea0ac95f4e56391608c
Windows: use GetSystemTimePreciseAsFileTime if available

PostgreSQL on Windows 8 or Windows Server 2012 will now
get high-resolution timestamps by dynamically loading the
GetSystemTimePreciseAsFileTime function. It'll fall back to
to GetSystemTimeAsFileTime if the higher precision variant
isn't found, so the same binaries without problems on older
Windows releases.

No attempt is made to detect the Windows version.  Only the
presence or absence of the desired function is considered.

Craig Ringer
src/backend/main/main.c
src/include/port.h
src/port/gettimeofday.c