Re: Can the V7.3 EXPLAIN ANALYZE be trusted? - Mailing list pgsql-performance

From Greg Stark
Subject Re: Can the V7.3 EXPLAIN ANALYZE be trusted?
Date
Msg-id 87lla1iago.fsf@stark.xeocode.com
Whole thread Raw
In response to Re: Can the V7.3 EXPLAIN ANALYZE be trusted?  ("Leeuw van der, Tim" <tim.leeuwvander@nl.unisys.com>)
Responses Re: Can the V7.3 EXPLAIN ANALYZE be trusted?
List pgsql-performance
"Leeuw van der, Tim" <tim.leeuwvander@nl.unisys.com> writes:

> I don't think EXPLAIN ANALYZE puts that much overhead on a query.

EXPLAIN ANALYZE does indeed impose a significant overhead. What percentage of
the time is overhead depends heavily on how much i/o the query is doing.

For queries that are primarily cpu bound because they're processing data from
the cache it can be substantial. If all the data is in the shared buffers then
the gettimeofday calls for explain analyze can be just about the only syscalls
being executed and they're executed a lot.

It would be interesting to try to subtract out the profiling overhead from the
data like most profilers do. But it's not an easy thing to do since the times
are nested.

--
greg

pgsql-performance by date:

Previous
From: "Leeuw van der, Tim"
Date:
Subject: Re: Can the V7.3 EXPLAIN ANALYZE be trusted?
Next
From: Tom Lane
Date:
Subject: Re: Can the V7.3 EXPLAIN ANALYZE be trusted?