Re: Adding wait events statistics

From: Andres Freund <andres(at)anarazel(dot)de>
To: Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Adding wait events statistics
Date: 2025-07-11 15:59:39
Message-ID: p57crhg4irchrk3empczs322tzfklsx2o5vsw77ttmug2fd6gz@l4mji7vwobuw
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On 2025-07-10 08:21:56 +0000, Bertrand Drouvot wrote:
> - Let's define a list of "cheap" and a list of "expensive" wait events
> - Change the code path to increment counters only for the "expensive" ones
> - Optimize the counter incrementation as much as possible
>
> Does that sound reasonable to you?

That does seem like the minimum.

Unfortunately I'm rather doubtful this provides enough value to be worth the
cost. But I'm rather willing to be proven wrong.

Greetings,

Andres Freund

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2025-07-11 16:06:13 Re: Adding basic NUMA awareness
Previous Message Tom Lane 2025-07-11 15:57:29 Re: [Question] Window Function Results without ORDER BY Clause