Re: CPU time for pg_stat_statement

From: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
To: Michail Nikolaev <michail(dot)nikolaev(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: CPU time for pg_stat_statement
Date: 2022-05-20 20:53:47
Message-ID: CA+hUKG+f5MtR=cHMsVnGcn=1yVY4sX7EnucGoZrB33wP798=og@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, May 21, 2022 at 6:50 AM Michail Nikolaev
<michail(dot)nikolaev(at)gmail(dot)com> wrote:
> But what do you think about adding cpu_time (by calling getrusage) to
> pg_stat_statements? Seems it could be very useful for CPU profiling.
>
> I am probably able to prepare the patch, but it is always better to
> get some feedback on the idea first :)

This might be interesting:

https://github.com/powa-team/pg_stat_kcache

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michail Nikolaev 2022-05-20 21:21:49 Re: CPU time for pg_stat_statement
Previous Message Tom Lane 2022-05-20 20:39:29 Re: CPU time for pg_stat_statement