Re: Missing indexes

From: Alex Balashov <abalashov(at)evaristesys(dot)com>
To: pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Missing indexes
Date: 2024-03-01 17:42:11
Message-ID: 8C52F074-25E7-4AA7-93C0-7606A1BA6F58@evaristesys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Well, you've come to the right place. This list loves "feelings-based" diagnoses. :)

Two suggestions:

1) Turn on your "slow query log":

ALTER SYSTEM SET log_min_duration_statement = 50;
SELECT pg_reload_conf();

Then look at the Postgres log and see which statements may be running slowly.

2) Have a look at `SELECT * FROM pg_stat_activity` and get your bearings.

-- Alex

> On 1 Mar 2024, at 12:40, Jean-Paul POZZI <jp(dot)pozzi(at)izzop(dot)net> wrote:
>
> Hello,
> Some examples of the "bad" sql text should be interesting ...
> Regards
>
> De: "Harish Harish" <hpt3009(at)gmail(dot)com>
> À: "undefined" <pgsql-admin(at)lists(dot)postgresql(dot)org>
> Envoyé: vendredi 1 mars 2024 17:39
> Objet: Missing indexes
>
> Dear Admins,
> I need help. We are on Postgres 10. and have a feeling there are some indexes missing wich is causing performance issue
> Please help me find the missing index within PostgreSQl 10.
> Your timely help and support is much appreciated.
> Best Regards,
> Hari

--
Alex Balashov
Principal Consultant
Evariste Systems LLC
Web: https://evaristesys.com
Tel: +1-706-510-6800

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Erik Wienhold 2024-03-01 17:48:09 Re: Missing indexes
Previous Message Jean-Paul POZZI 2024-03-01 17:40:23 RE: Missing indexes