| From: | Mladen Gogala <gogala(dot)mladen(at)gmail(dot)com> |
|---|---|
| To: | pgsql-performance(at)lists(dot)postgresql(dot)org |
| Subject: | Re: Never Ending query in PostgreSQL |
| Date: | 2022-03-01 03:44:09 |
| Message-ID: | 242bb192-e280-42bb-b6a2-30e6d5466472@gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-performance |
On 2/26/22 23:40, Kumar, Mukesh wrote:
> Hi Team,
>
> Can you please help in tunning the attached query as , i am trying to
> run this query and it runs for several hours and it did not give any
> output.
>
> I am not able to generate the explain analyze plan as well and it
> keeps on running for several hours and did not give output.
>
> I have attached the query and explain plan without analyze. Please
> help if nayone has any idea how to tune that query.
>
> Regards,
> Mukesh Kumar
Hi Team Member,
Your attachments are not SQL, they are plans. Judging by the size of the
plans, your best course of action is to completely rewrite the queries,
probably using CTE and temporary tables. May the Force be with you.
Regards
--
Mladen Gogala
Database Consultant
Tel: (347) 321-1217
https://dbwhisperer.wordpress.com
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Mladen Gogala | 2022-03-01 03:54:44 | Re: Never Ending query in PostgreSQL |
| Previous Message | Charles Huang | 2022-02-28 23:33:54 | RLS not using index scan but seq scan when condition gets a bit complicated |