From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
Cc: | Asif Naeem <anaeem(dot)it(at)gmail(dot)com>, Andres Freund <andres(at)2ndquadrant(dot)com>, Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org> |
Subject: | Re: gettimeofday cause crash on Windows |
Date: | 2015-02-12 17:42:44 |
Message-ID: | 18265.1423762964@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> writes:
> I wonder if it would work to set the function initially to the
> initialization function, so that on the first call the Precise version,
> if it exists, is detected (or the stock version otherwise) and set as
> the function to call for later -- without requiring a jump in every
> subsequent execution of gettimeofday(), of course. The initialization
> function itself would have to return the value returned by
> GetSystemTimePreciseAsFileTime, of course.
+1. The idea that we are going to alter the calling requirements around a
POSIX-standard function is utterly horrible. It will break third-party
code, very probably.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2015-02-12 17:53:05 | Re: gettimeofday cause crash on Windows |
Previous Message | Moe | 2015-02-12 16:43:23 | Re: BUG #12760: Lateral files with more than 2 laterals |