| From: | Sami Imseih <samimseih(at)gmail(dot)com> |
|---|---|
| To: | Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com> |
| Cc: | Nathan Bossart <nathandbossart(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Robert Haas <robertmhaas(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: Restart pg_usleep when interrupted |
| Date: | 2024-08-05 20:07:34 |
| Message-ID: | 19E276C9-2C2B-435A-B275-8FA22222AEB8@gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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 | Content-Type | Size |
|---|---|---|
| v4-0001-vaccum_delay-with-absolute-time-nanosleep.patch | application/octet-stream | 2.7 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Alena Rybakina | 2024-08-05 20:24:47 | Re: POC, WIP: OR-clause support for indexes |
| Previous Message | Alexander Korotkov | 2024-08-05 19:48:53 | Re: POC, WIP: OR-clause support for indexes |