Re: Difference between explain analyze and real execution time

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Artur Zając <azajac(at)ang(dot)com(dot)pl>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Difference between explain analyze and real execution time
Date: 2010-11-15 15:12:59
Message-ID: 13814.1289833979@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

=?iso-8859-2?Q?Artur_Zaj=B1c?= <azajac(at)ang(dot)com(dot)pl> writes:
> Why there is so big difference between explain analyze (0.710 ms) and real
> execution time (3309 ms)?

EXPLAIN ANALYZE doesn't account for all of the runtime involved. In
this case, I'd bet that session startup/shutdown is a big part of the
difference.

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Artur Zając 2010-11-15 15:24:30 Re: Difference between explain analyze and real execution time
Previous Message Robert Haas 2010-11-15 15:06:04 Re: Running PostgreSQL as fast as possible no matter the consequences