Re: [pgsql-hackers-win32] explain analyze timings

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: [pgsql-hackers-win32] explain analyze timings
Дата
Msg-id 6BCB9D8A16AC4241919521715F4D8BCE6C70EB@algol.sollentuna.se
обсуждение исходный текст
Ответы Re: [pgsql-hackers-win32] explain analyze timings
Список pgsql-patches
>> Here's a patch that does just this.
>
>This seems about the ugliest and most intrusive way you could have
>done it :-(.  A judicious typedef and macro or two could eliminate
>most of the #ifdefs and code duplication, thereby preserving
>readability...

Well, I certainly can't argue with that, now that you mention it ;-)
Here is a second attempt, hope it's closer to what you expected.

I still left two #ifdefs in there, for the addition and subtraction of
timeval:s specifically. They could be made functions/macros too, just
not sure if it's worth it.

Tested on win32 and linux (now that it changes non-win32 specific code
as well).

//Magnus

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [pgsql-hackers-win32] explain analyze timings
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [pgsql-hackers-win32] explain analyze timings