From: Mladen Gogala <gogala.mladen@gmail.com>
To: pgsql-performance@lists.postgresql.org
Subject: Re: Never Ending query in PostgreSQL
Date: Mon, 28 Feb 2022 22:44:09 -0500
Message-ID: <242bb192-e280-42bb-b6a2-30e6d5466472@gmail.com> (raw)
In-Reply-To: <CH0P221MB04744E424D17609A1F8B814BDE009@CH0P221MB0474.NAMP221.PROD.OUTLOOK.COM>
References: <CH0P221MB04744E424D17609A1F8B814BDE009@CH0P221MB0474.NAMP221.PROD.OUTLOOK.COM>
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
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-performance@postgresql.org
Cc: gogala.mladen@gmail.com, pgsql-performance@lists.postgresql.org
Subject: Re: Never Ending query in PostgreSQL
In-Reply-To: <242bb192-e280-42bb-b6a2-30e6d5466472@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 DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox