pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nathan Bossart <nathandbossart@gmail.com>
To: Sami Imseih <samimseih@gmail.com>
Cc: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: Restart pg_usleep when interrupted
Date: Mon, 15 Jul 2024 12:20:29 -0500
Message-ID: <ZpVaXQGEspp3gk8S@nathan> (raw)
In-Reply-To: <521A6F3B-77E1-4F3F-B15E-BCF26D52C698@gmail.com>
References: <373D199B-2312-431D-8018-F2808913F979@gmail.com>
	<Zo0UdeE3i9d0Wt5E@ip-10-97-1-34.eu-west-3.compute.internal>
	<3712E898-03DA-4E03-AF51-D3E24DE68216@gmail.com>
	<C18017A1-EDFD-4F2F-BCA1-0572D4CCC92B@gmail.com>
	<Zo_7blmO166ZDGbW@nathan>
	<2F781744-69B8-4BC2-A6EF-3998DCCDB634@gmail.com>
	<ZpA4_Pw14FCP6025@nathan>
	<01A15AEA-C35C-41DF-8E81-3B5A0B523939@gmail.com>
	<ZpGBjZZtbDGUtvTV@nathan>
	<521A6F3B-77E1-4F3F-B15E-BCF26D52C698@gmail.com>

On Fri, Jul 12, 2024 at 03:39:57PM -0500, Sami Imseih wrote:
> but Bertrand found long drifts [2[ which I could not reproduce.
> To safeguard the long drifts, continue to use the &remain time with an 
> additional safeguard to make sure the actual sleep does not exceed the 
> requested sleep time.

Bertrand, does this safeguard fix the long drifts you saw?

-- 
nathan





view thread (73+ messages)  latest in thread

Message-ID: <ZpVaXQGEspp3gk8S@nathan>
Permalink:  ../ZpVaXQGEspp3gk8S@nathan/
Also on:    postgresql.org/message-id/ZpVaXQGEspp3gk8S@nathan

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: nathandbossart@gmail.com, samimseih@gmail.com, bertranddrouvot.pg@gmail.com, tgl@sss.pgh.pa.us, robertmhaas@gmail.com
  Subject: Re: Restart pg_usleep when interrupted
  In-Reply-To: <ZpVaXQGEspp3gk8S@nathan>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox