pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Vondra <tomas.vondra@2ndquadrant.com>
To: pgsql-performance@postgresql.org
Subject: Re: Query is running very slow......
Date: Wed, 24 May 2017 19:25:54 +0200
Message-ID: <4caed7cc-07d8-e364-78ca-7a96b9780a9d@2ndquadrant.com> (raw)
In-Reply-To: <3152be5a435f45649cef6bf9321beb9a@cyient.com>
References: <3152be5a435f45649cef6bf9321beb9a@cyient.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>

Hi,

On 5/24/17 7:04 PM, Dinesh Chandra 12108 wrote:
> Dear Expert,
> 
> While executing the blow query, its taking too long time to fetch output.
> 
> Could you please help to fine tune the same?
> 

You'll have to provide far more details - the query alone is certainly 
not enough for anyone to guess why it's slow. Perhaps look at this:

     https://wiki.postgresql.org/wiki/Slow_Query_Questions

In particular, you'll have to tell us

(a) something about the hardware it's running on

(b) amounts of data in the tables / databases

(c) EXPLAIN or even better EXPLAIN ANALYZE of the query

(d) configuration of the database (work_mem, shared_buffers etc.)


regards

-- 
Tomas Vondra                  http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


-- 
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance



view thread (6+ messages)  latest in thread

Message-ID: <4caed7cc-07d8-e364-78ca-7a96b9780a9d@2ndquadrant.com>
Permalink:  ../4caed7cc-07d8-e364-78ca-7a96b9780a9d@2ndquadrant.com/
Also on:    postgresql.org/message-id/4caed7cc-07d8-e364-78ca-7a96b9780a9d@2ndquadrant.com

 · 

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-performance@postgresql.org
  Cc: tomas.vondra@2ndquadrant.com
  Subject: Re: Query is running very slow......
  In-Reply-To: <4caed7cc-07d8-e364-78ca-7a96b9780a9d@2ndquadrant.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