Re: GNU/Hurd portability patches

Поиск
Список
Период
Сортировка
От Michael Banck
Тема Re: GNU/Hurd portability patches
Дата
Msg-id 68d413a3.a70a0220.24c74c.8be9@mx.google.com
обсуждение исходный текст
Ответ на Re: GNU/Hurd portability patches  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: GNU/Hurd portability patches
Re: GNU/Hurd portability patches
Список 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

Вложения

В списке pgsql-hackers по дате отправления: