Re: Can the V7.3 EXPLAIN ANALYZE be trusted?

From: "Leeuw van der, Tim" <tim(dot)leeuwvander(at)nl(dot)unisys(dot)com>
To: "Steven Rosenstein" <srosenst(at)us(dot)ibm(dot)com>, <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Can the V7.3 EXPLAIN ANALYZE be trusted?
Date: 2005-02-06 22:09:52
Message-ID: BF88DF69D9E2884B9BE5160DB2B97A85010D7046@nlshl-exch1.eu.uis.unisys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

-----Original Message-----
From: pgsql-performance-owner(at)postgresql(dot)org [mailto:pgsql-performance-owner(at)postgresql(dot)org]On Behalf Of Steven Rosenstein
Sent: Sunday, February 06, 2005 8:51 PM
To: pgsql-performance(at)postgresql(dot)org
Subject: [PERFORM] Can the V7.3 EXPLAIN ANALYZE be trusted?

While working on a previous question I posed to this group, I ran a number
of EXPLAIN ANALYZE's to provide as examples. After sending up my last
email, I ran the same query *without* EXPLAIN ANALYZE. The runtimes were
vastly different. In the following example, I ran two identical queries
one right after the other. The runtimes for both was very close (44.77
sec). I then immediately ran the exact same query, but without EXPLAIN
ANALYZE. The same number of rows was returned, but the runtime was only
8.7 sec. I don't think EXPLAIN ANALYZE puts that much overhead on a query.
Does anyone have any idea what is going on here?

--- Steve

Caching by the OS?

(Did you try to *first* run the query w/o EXPLAIN ANALYZE, and then with? What's the timing if you do that?)

--Tim

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Greg Stark 2005-02-06 22:34:47 Re: Can the V7.3 EXPLAIN ANALYZE be trusted?
Previous Message Steven Rosenstein 2005-02-06 21:57:44 Re: Are JOINs allowed with DELETE FROM