public inbox for pgsql-admin@postgresql.org
help / color / mirror / Atom feedFrom: kaido vaikla <kaido.vaikla@gmail.com>
To: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: Raj <rajeshkumar.dba09@gmail.com>
Cc: Pgsql-admin <pgsql-admin@lists.postgresql.org>
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: <1ce81f428a5e42bc263f7fece688b084a46f28af.camel@cybertec.at>
References: <CAJk5AtZvkEdQsGLOEBAXuFv085End7H2T7SGkaEfTO1+QEARPw@mail.gmail.com>
<2fd0442020d5b23609873f999b7d374875875689.camel@cybertec.at>
<CAJk5AtZ_7nKTLpVvduJCeVD=qMD=A9nVia=UmCWGo6JkbRMoRQ@mail.gmail.com>
<efb70f15e61eaa95bcfa6039f6dd086481fc4bdb.camel@cybertec.at>
<CAJk5AtZ1-N4hs=6D1NtnNNt116e9kjEhpFdakrkJUJtgaL_xKQ@mail.gmail.com>
<1ce81f428a5e42bc263f7fece688b084a46f28af.camel@cybertec.at>
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: pgsql-admin@postgresql.org
Cc: kaido.vaikla@gmail.com, laurenz.albe@cybertec.at, rajeshkumar.dba09@gmail.com, pgsql-admin@lists.postgresql.org
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