Re: [PERFORM] Performance of the Materialize operator in a query plan

2008-04-27 Thread Viktor Rosenfeld
Hi, using this strategy to study the overhead of EXPLAIN ANALYZE was very insightful. Apparently, measuring the performance of the query plan introduced a overhead of more than 10 seconds in the query I was looking at. Thanks, Viktor Am 24.04.2008 um 19:05 schrieb PFC: Do you mean, that

Re: [PERFORM] Performance of the Materialize operator in a query plan

2008-04-24 Thread PFC
Do you mean, that the overhead is an artefact of timing the query? In that case, the query should run faster than its evaluation with EXPLAIN ANALYZE, correct? Is there a way to test this assumption regarding the speed of gettimeofday? I'm on a Macbook and have no idea about the performan

Re: [PERFORM] Performance of the Materialize operator in a query plan

2008-04-24 Thread Viktor Rosenfeld
Hi Tom, The cost of the inner-most Nested Loop is 27 ms, but the total cost of the Materialize operator is 666 ms (9250 loops * 0.072 ms per iteration). So, Materialize introduces more than 10x overhead. Not hardly. Had the Materialize not been there, we'd have executed the inner nestloop

Re: [PERFORM] Performance of the Materialize operator in a query plan

2008-04-21 Thread Tom Lane
Viktor Rosenfeld <[EMAIL PROTECTED]> writes: > I'm having trouble understanding the cost of the Materialize > operator. Consider the following plan: > Nested Loop (cost=2783.91..33217.37 rows=78634 width=44) (actual > time=77.164..2478.973 rows=309 loops=1) > Join Filter: ((rank2.pr