Re: Better, consistent instrumentation for postgreSQL using a similar API as Oracle

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Jeremy Schneider <schneider(at)ardentperf(dot)com>
Cc: Peter Geoghegan <pg(at)bowt(dot)ie>, Jeff Holt <jeff(dot)holt(at)method-r(dot)com>, pgsql-performance(at)lists(dot)postgresql(dot)org, Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
Subject: Re: Better, consistent instrumentation for postgreSQL using a similar API as Oracle
Date: 2021-10-08 02:38:49
Message-ID: 20211008023849.GF5476@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Thu, Oct 7, 2021 at 07:15:39PM -0700, Jeremy Schneider wrote:
> PostgreSQL added wait events starting in 9.6 and the last thing that's
> missing is an integrated way to trace or log them. A simple starting
> point could be a session-level GUC that enables a hook in
> pgstat_report_wait_start() and pgstat_report_wait_end() to just drop
> messages in the log. These log messages could then easily be processed
> to generate the similar profiles to the ones we used with other
> databases. Basically I agree 100% with Jeff that while you can do these
> things with perf probes or eBPF, there are massive advantages to having
> it baked in the database. With the right tools, this makes session
> profiling available to regular users (who do their day jobs with excel
> rather than eBPF).

Our wait events reported in pg_stat_activity are really only a first
step --- I always felt it needed an external tool to efficiently collect
and report those wait events. I don't think the server log is the right
place to collect them.

--
Bruce Momjian <bruce(at)momjian(dot)us> https://momjian.us
EDB https://enterprisedb.com

If only the physical world exists, free will is an illusion.

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Mladen Gogala 2021-10-08 03:35:16 Re: Better, consistent instrumentation for postgreSQL using a similar API as Oracle
Previous Message Jeremy Schneider 2021-10-08 02:15:39 Re: Better, consistent instrumentation for postgreSQL using a similar API as Oracle