Re: Avoiding roundoff error in pg_sleep()

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Vladlen Popolitov <v(dot)popolitov(at)postgrespro(dot)ru>
Cc: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Avoiding roundoff error in pg_sleep()
Date: 2025-09-26 15:46:02
Message-ID: CA+TgmoZ9m4sf71FdwChsdSNjjUy2kHjU6unqqGp=JnGv9ur=RQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Sep 26, 2025 at 11:25 AM Vladlen Popolitov
<v(dot)popolitov(at)postgrespro(dot)ru> wrote:
> It _does_ not work as it advertised. Help page states:
> 1) "delay execution of the server process"
> 2) "pg_sleep makes the current session's process sleep"
> In reality it stops other backends too.

This thread is about fixing a bug in pg_sleep. I understand that you
don't like the way that pg_sleep works and think it should work
differently. I think you're wrong, and I think Tom and David are
right, and I think they've been more than generous in taking time to
respond to your concerns. But even if they are wrong and you are
right, it's not right to try to hijack a thread about fixing a bug in
pg_sleep to demand that it be redesigned. Please stop doing that. If
you want to, you can start a separate thread to discuss the problem
you're concerned about, but leave this one for discussion of the bug
fix.

--
Robert Haas
EDB: http://www.enterprisedb.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2025-09-26 15:48:16 Re: test_json_parser/002_inline is kind of slow
Previous Message David Christensen 2025-09-26 15:45:53 Re: [PATCH] GROUP BY ALL