Re: Restart pg_usleep when interrupted

Поиск
Список
Период
Сортировка
От Sami Imseih
Тема Re: Restart pg_usleep when interrupted
Дата
Msg-id 19E276C9-2C2B-435A-B275-8FA22222AEB8@gmail.com
обсуждение исходный текст
Ответ на Re: Restart pg_usleep when interrupted  (Bertrand Drouvot <bertranddrouvot.pg@gmail.com>)
Ответы Re: Restart pg_usleep when interrupted
Список pgsql-hackers
> yeah, we already have a few macros that access the .ticks, so maybe we could add
> 2 new ones, say:
>
> 1. INSTR_TIME_ADD_MS(t1, msec)
> 2. INSTR_TIME_IS_GREATER(t1, t2)
>
> I think the less operations is done in the while loop the better.
>

See v4. it includes 2 new instr_time.h macros to simplify the
code insidethe while loop.

Regards,

Sami
Вложения

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