public inbox for [email protected]  
help / color / mirror / Atom feed
From: kaido vaikla <[email protected]>
To: Laurenz Albe <[email protected]>
Cc: Raj <[email protected]>
Cc: Pgsql-admin <[email protected]>
Subject: Re: Slowness
Date: Fri, 17 Apr 2026 10:19:25 +0300
Message-ID: <CA+427g_WWkt-QcqbOOruG3WEwpkOrhPER51Dp29wd7MoFnVchw@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <CAJk5AtZvkEdQsGLOEBAXuFv085End7H2T7SGkaEfTO1+QEARPw@mail.gmail.com>
	<[email protected]>
	<CAJk5AtZ_7nKTLpVvduJCeVD=qMD=A9nVia=UmCWGo6JkbRMoRQ@mail.gmail.com>
	<[email protected]>
	<CAJk5AtZ1-N4hs=6D1NtnNNt116e9kjEhpFdakrkJUJtgaL_xKQ@mail.gmail.com>
	<[email protected]>

If "customer says they are facing slowness" then my three first steps
usually are
1) grep "ERROR:\|FATAL:" server.log
2) top. Maybe there is some unexpected process(es). Use a f, to sort by
mem, cpu etc
3) query:
select datname, usename, client_addr, leader_pid, pid, DATE_TRUNC('second',
query_start) query_start, wait_event_type, wait_event, query_id from
pg_stat_activity where xact_start is not NULL order by 6;
and
\watch
And take a look at wait_event_type, wait_event

It gives glance, what is currently going on.

br
Kaido


reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected], [email protected]
  Subject: Re: Slowness
  In-Reply-To: <CA+427g_WWkt-QcqbOOruG3WEwpkOrhPER51Dp29wd7MoFnVchw@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox