Re: Restart pg_usleep when interrupted - Mailing list pgsql-hackers

From Sami Imseih
Subject Re: Restart pg_usleep when interrupted
Date
Msg-id 19E276C9-2C2B-435A-B275-8FA22222AEB8@gmail.com
Whole thread Raw
In response to Re: Restart pg_usleep when interrupted  (Bertrand Drouvot <bertranddrouvot.pg@gmail.com>)
Responses Re: Restart pg_usleep when interrupted
List 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
Attachment

pgsql-hackers by date:

Previous
From: Alexander Korotkov
Date:
Subject: Re: POC, WIP: OR-clause support for indexes
Next
From: Alena Rybakina
Date:
Subject: Re: POC, WIP: OR-clause support for indexes