From: | Simon Riggs <simon(at)2ndQuadrant(dot)com> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Windows: use GetSystemTimePreciseAsFileTime if available |
Date: | 2014-12-08 14:40:16 |
Message-ID: | E1XxzU0-0006K1-Q7@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/8001fe67a3d66c95861ce1f7075ef03953670d13
Modified Files
--------------
src/backend/main/main.c | 6 ++++++
src/include/port.h | 2 ++
src/port/gettimeofday.c | 53 +++++++++++++++++++++++++++++++++++++++++++++--
3 files changed, 59 insertions(+), 2 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Simon Riggs | 2014-12-08 15:31:35 | pgsql: REINDEX SCHEMA |
Previous Message | Simon Riggs | 2014-12-08 14:35:00 | pgsql: Use GetSystemTimeAsFileTime directly in win32 |