Re: What happens between end of explain analyze and end of query execution ?

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: Franck Routier <franck(dot)routier(at)axege(dot)com>
Cc: postgres performance list <pgsql-performance(at)postgresql(dot)org>
Subject: Re: What happens between end of explain analyze and end of query execution ?
Date: 2013-04-04 19:19:23
Message-ID: CAHyXU0wUDpytWzqz=JFE9kGx5HDex2_xTBCOVuVzZ_Oap-1QHA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Thu, Apr 4, 2013 at 9:48 AM, Franck Routier <franck(dot)routier(at)axege(dot)com> wrote:
> Hi,
>
> I have query that should be quick, and used to be quick, but is not
> anymore... Explain analyze can be seen here http://explain.depesz.com/s/cpV
> but it is fundamentaly quick : Total runtime: 0.545 ms.
>
> But query execution takes 3.6 seconds. Only 12 rows are returned. Adding a
> limit 1 has no influence.
>
> Postgresql client and server are on the same server, on localhost.
>
> I wonder where my 3.5 seconds are going....

Also, 3.6 seconds according to what exactly? For example if your 12
rows contain megabytes of bytea data that would be a possible cause
(albeit unlikely) since explain doesn't include network transfer time.

merlin

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Franck Routier 2013-04-05 13:55:08 Re: What happens between end of explain analyze and end of query execution ?
Previous Message Tom Lane 2013-04-04 19:08:52 Re: What happens between end of explain analyze and end of query execution ?