Re: Execution-time-sensitive timestamp regression tests - Mailing list pgsql-hackers

From Rainer Bauer
Subject Re: Execution-time-sensitive timestamp regression tests
Date
Msg-id g53h341u0v262l8flqi51jvadg021ou1r6@4ax.com
Whole thread Raw
In response to Execution-time-sensitive timestamp regression tests  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Magnus Hagander wrote:

>For the record, what we were talking about was snapshotting the time at
>backend start and then use QueryPerformanceCounter() to see what
>happened and do some calculation.

Although this might not be such a big issue for the regression tests:
Be aware that the reliability of QueryPerformanceCounter() depends on the
hardware: <http://support.microsoft.com/kb/274323/en-us>

I used it in Munnin, but there were too many customer machines affected by
this bug so that I had to abandom it. This was a few years ago, but I'm not
sure whether the function can be trusted today (see for example this
performance problem <http://support.microsoft.com/kb/895980/en-us>).

Rainer


pgsql-hackers by date:

Previous
From: Sushant Sinha
Date:
Subject: Re: [GENERAL] Fragments in tsearch2 headline
Next
From: "Pierre-Yves Strub"
Date:
Subject: Re: [GENERAL] Fragments in tsearch2 headline