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

From: Mladen Gogala <gogala(dot)mladen(at)gmail(dot)com>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: pgsql-performance(at)lists(dot)postgresql(dot)org
Subject: Re: Better, consistent instrumentation for postgreSQL using a similar API as Oracle
Date: 2021-10-08 16:38:19
Message-ID: 66181837-54c8-e3a5-e650-c789a4ffe29e@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance


On 10/8/21 11:21, Bruce Momjian wrote:
> Ah, this is exactly what I wanted to know --- what people are using the
> event waits for. Can you tell if these are done all externally, or if
> they need internal database changes?
Well, the methodology goes like this: we get the slow queries from
pgBadger report and then run explain (analyze, timing, buffers) on the
query. If we still cannot figure out how to improve things, we check the
events and see what the query is waiting for. After that we may add an
index, partition the table, change index structure or do something like
that. Unrelated to this discussion, I discovered Bloom extension. Bloom
indexes are phenomenally useful. I apologize for the digression.

--
Mladen Gogala
Database Consultant
Tel: (347) 321-1217
https://dbwhisperer.wordpress.com

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Franck Pachot 2021-10-10 22:09:32 Re: Better, consistent instrumentation for postgreSQL using a similar API as Oracle
Previous Message Thomas Kellerer 2021-10-08 16:07:17 Re: Better, consistent instrumentation for postgreSQL using a similar API as Oracle