- Notifications
You must be signed in to change notification settings - Fork5
Commit8001fe6
committed
Windows: use GetSystemTimePreciseAsFileTime if available
PostgreSQL on Windows 8 or Windows Server 2012 will nowget high-resolution timestamps by dynamically loading theGetSystemTimePreciseAsFileTime function. It'll fall back toto GetSystemTimeAsFileTime if the higher precision variantisn't found, so the same binaries without problems on olderWindows releases.No attempt is made to detect the Windows version. Only thepresence or absence of the desired function is considered.Craig Ringer1 parent519b075 commit8001fe6
3 files changed
+59
-2
lines changedLines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
260 | 260 |
| |
261 | 261 |
| |
262 | 262 |
| |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
263 | 269 |
| |
264 | 270 |
| |
265 | 271 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
328 | 328 |
| |
329 | 329 |
| |
330 | 330 |
| |
| 331 | + | |
| 332 | + | |
331 | 333 |
| |
332 | 334 |
| |
333 | 335 |
| |
|
Lines changed: 51 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
44 | 93 |
| |
45 | 94 |
| |
46 | 95 |
| |
47 |
| - | |
| 96 | + | |
48 | 97 |
| |
49 | 98 |
| |
50 | 99 |
| |
| |||
53 | 102 |
| |
54 | 103 |
| |
55 | 104 |
| |
56 |
| - | |
| 105 | + | |
57 | 106 |
| |
58 | 107 |
| |
59 | 108 |
| |
|
0 commit comments
Comments
(0)