pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Artur ZajÄ…c <azajac@ang.com.pl>
Cc: pgsql-performance@postgresql.org
Subject: Re: Difference between explain analyze and real execution time
Date: Mon, 15 Nov 2010 10:12:59 -0500
Message-ID: <13814.1289833979@sss.pgh.pa.us> (raw)
In-Reply-To: <000001cb849e$1dce2720$596a7560$@ang.com.pl>
References: <000001cb849e$1dce2720$596a7560$@ang.com.pl>

=?iso-8859-2?Q?Artur_Zaj=B1c?= <azajac@ang.com.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



view thread (8+ messages)  latest in thread

Message-ID: <13814.1289833979@sss.pgh.pa.us>
Permalink:  ../13814.1289833979@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13814.1289833979@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, azajac@ang.com.pl
  Subject: Re: Difference between explain analyze and real execution time
  In-Reply-To: <13814.1289833979@sss.pgh.pa.us>

* 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