pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Will Platnick <wplatnick@gmail.com>
To: pgsql-performance@postgresql.org
Subject: Re: Slow Query Help
Date: Wed, 6 Feb 2013 08:17:50 -0500
Message-ID: <2CB5B53971DB42238A7640E6EFAE8D19@gmail.com> (raw)
In-Reply-To: <CABOikdPdsqgiXgq7efNCyQv6HkdFHktWAMYM0QFj8xxtBMj0Mw@mail.gmail.com>
References: <ED51F03F1D2C469EB2F7FF91C677AD4F@gmail.com>
	<CABOikdPdsqgiXgq7efNCyQv6HkdFHktWAMYM0QFj8xxtBMj0Mw@mail.gmail.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>

Good eye, I totally missed that! 

Any ideas on how to troubleshoot this delay? 



On Wednesday, February 6, 2013 at 3:51 AM, Pavan Deolasee wrote:

> On Tue, Feb 5, 2013 at 9:15 AM, Will Platnick <wplatnick@gmail.com (mailto:wplatnick@gmail.com)> wrote:
> > We upgraded from PG 9.1 to 9.2. Since the upgrade, the # of active queries
> > has raised significantly, especially during our peak time where lots of
> > users are logging in. According to New Relic, this query is now taking up
> > the most amount of time during peak activity and my pg_stat_activity and
> > slow log sampling agrees. We have 3 DB servers referenced here, production
> > running 9.2.2, semi-idle (idle except for replication when I ran the test)
> > running 9.2.2, and 9.1.3 completely idle with an old dump restored.
> > 
> 
> 
> The only thing that stands out is: on your production server I see
> "Total runtime: 7.515 ms", but the top node in EXPLAIN ANAYZE shows
> actual time as 0.179 ms. Not sure where that additional time is being
> spent though. It could be ExecutorStart/End, but have no idea why they
> should take so long.
> 
> Thanks,
> Pavan
> -- 
> Pavan Deolasee
> http://www.linkedin.com/in/pavandeolasee
> 
> 

view thread (11+ messages)  latest in thread

Message-ID: <2CB5B53971DB42238A7640E6EFAE8D19@gmail.com>
Permalink:  ../2CB5B53971DB42238A7640E6EFAE8D19@gmail.com/
Also on:    postgresql.org/message-id/2CB5B53971DB42238A7640E6EFAE8D19@gmail.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: wplatnick@gmail.com
  Subject: Re: Slow Query Help
  In-Reply-To: <2CB5B53971DB42238A7640E6EFAE8D19@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