Re: GNU/Hurd portability patches - Mailing list pgsql-hackers

From Michael Banck
Subject Re: GNU/Hurd portability patches
Date
Msg-id 68d413a3.a70a0220.24c74c.8be9@mx.google.com
Whole thread Raw
In response to Re: GNU/Hurd portability patches  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi,

On Wed, Sep 24, 2025 at 10:28:46AM -0400, Tom Lane wrote:
> It seems plausible that the execution time of the stats
> test's function-under-test is so short that it sometimes
> doesn't register as more than zero on a machine with poor
> clock resolution.  It looks like that test only calls the
> test function once or twice before checking that it's
> accumulated some runtime, and the test function is nothing
> more than
> 
>     CREATE FUNCTION test_stat_func() RETURNS VOID LANGUAGE plpgsql AS $$BEGIN END;$$;
> 
> I'd call this a bug in that test TBH.  It'd be saner to
> make the function do something like pg_sleep for 1ms.

I did that in the attached, so far my Hurd VM ran the stats test more
than 1000 times without a failure with it. I have the loop running till
10000, I'll report back tomorrow.


Michael

Attachment

pgsql-hackers by date:

Previous
From: Daniel Gustafsson
Date:
Subject: Re: "openssl" should not be optional
Next
From: Fujii Masao
Date:
Subject: Re: Trivial fix for comment of function table_tuple_lock