Re: Can the V7.3 EXPLAIN ANALYZE be trusted?
От | Greg Stark |
---|---|
Тема | Re: Can the V7.3 EXPLAIN ANALYZE be trusted? |
Дата | |
Msg-id | 87lla1iago.fsf@stark.xeocode.com обсуждение исходный текст |
Ответ на | Re: Can the V7.3 EXPLAIN ANALYZE be trusted? ("Leeuw van der, Tim" <tim.leeuwvander@nl.unisys.com>) |
Ответы |
Re: Can the V7.3 EXPLAIN ANALYZE be trusted?
|
Список | 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 по дате отправления: