From: | Francisco Olarte <folarte(at)peoplecall(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Thomas Munro <thomas(dot)munro(at)gmail(dot)com>, Dominique Devienne <ddevienne(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: libpq v17 PQsocketPoll timeout is not granular enough |
Date: | 2024-06-11 07:19:02 |
Message-ID: | CA+bJJbyvEj3MNniVFwayTUAZK9cche6XqThgqZnhnXex-gf3kA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Tom:
On Tue, 11 Jun 2024 at 01:49, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> I think if we're going to change anything at all here, we should
> define the external API in microseconds not milliseconds. The lesson
> we need to be taking from this is that system calls come and go,
> but libpq API is forever ;-). Somebody could conceivably want
> sub-millisecond wait resolution within the lifespan of libpq.
I was thinking on that, but since you need at least 20 bits, so 32,
for microseconds I would suggest nanoseconds, which fit in 32 too.
Sure, nanos seems too much for the current time but it pushes the
future problem further down, nearly forever for comms between
different machines until someone develops FTL networks.
Francisco Olarte.
From | Date | Subject | |
---|---|---|---|
Next Message | hubert depesz lubaczewski | 2024-06-11 11:33:44 | Re: Does trigger only accept functions? |
Previous Message | Shenavai, Manuel | 2024-06-11 06:55:03 | autoanalyze / autovacuum vs manually executed "vacuum analyze" |