Re: [Windows,PATCH] Use faster, higher precision timer API

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: [Windows,PATCH] Use faster, higher precision timer API
Дата
Msg-id 20140917173348.GF8343@alap3.anarazel.de
обсуждение исходный текст
Ответ на Re: [Windows,PATCH] Use faster, higher precision timer API  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [Windows,PATCH] Use faster, higher precision timer API  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 2014-09-17 09:38:59 -0700, Tom Lane wrote:
> On the Unix side, I know exactly what would happen to a
> patch proposing that we replace gettimeofday() with clock_gettime()
> with no thought for backwards compatibility.

Btw, do you plan to pursue clock_gettime()? It'd be really neat to have
it...

> 
> Quite aside from XP ... AFAICS from the patch description, this patch
> in itself moves us to a place that's a net negative in terms of
> functionality.  Maybe it's a stepping stone to something better, but I
> think we should just go directly to the something better.  I don't
> care for committing regressions on the promise that they'll get fixed
> later.

I don't think there's any regressions in that patch? Rather the
contrary. I understand the comment about the timer tick to be just as
applicable to the current code as the new version. Just that the old
code can't possibly have a precision lower than 1ms, but the new one
can.

Greetings,

Andres Freund

-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: printing table in asciidoc with psql
Следующее
От: Szymon Guz
Дата:
Сообщение: Re: printing table in asciidoc with psql