Re: Execution-time-sensitive timestamp regression tests

Поиск
Список
Период
Сортировка
От Rainer Bauer
Тема Re: Execution-time-sensitive timestamp regression tests
Дата
Msg-id g53h341u0v262l8flqi51jvadg021ou1r6@4ax.com
обсуждение исходный текст
Ответ на Execution-time-sensitive timestamp regression tests  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Sushant Sinha
Дата:
Сообщение: Re: [GENERAL] Fragments in tsearch2 headline
Следующее
От: "Pierre-Yves Strub"
Дата:
Сообщение: Re: [GENERAL] Fragments in tsearch2 headline