Re: Slow queries on simple index

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Lillian Berry" <lillian(at)star-ark(dot)net>
Cc: pgsql-performance(at)lists(dot)postgresql(dot)org, infra(at)pluralkit(dot)me
Subject: Re: Slow queries on simple index
Date: 2026-01-17 16:57:37
Message-ID: 2147130.1768669057@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-performance

"Lillian Berry" <lillian(at)star-ark(dot)net> writes:
> Logs on our PostgreSQL cluster show frequent slow reads on a simple query by unique index.
> This issue has been present for some years, and survived multiple server moves as well as PostgreSQL version upgrades.
> Vacuuming or reindexing the table does not seem to help.

What else is going on in that database? The fact that you show
several different sessions suffering similar delays at almost the
same time seems suspicious to me. I'm wondering if something is
taking an exclusive lock on that table and then sitting on it
for a second or two.

regards, tom lane

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Lillian Berry 2026-01-17 19:33:32 Re: Slow queries on simple index
Previous Message Ken Marshall 2026-01-17 15:28:17 Re: Slow queries on simple index