X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id D38765E46ED for ; Sun, 15 Aug 2004 15:13:45 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 53549-06 for ; Sun, 15 Aug 2004 18:13:40 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id EE3CD5E40BA for ; Sun, 15 Aug 2004 15:13:39 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i7FIDe2v028314; Sun, 15 Aug 2004 14:13:40 -0400 (EDT) To: Ole Tange Cc: pgsql-performance@postgresql.org Subject: Re: Help interpreting explain analyze output In-reply-to: References: Comments: In-reply-to Ole Tange message dated "Sun, 15 Aug 2004 19:47:53 +0200" Date: Sun, 15 Aug 2004 14:13:39 -0400 Message-ID: <28313.1092593619@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/240 X-Sequence-Number: 7876 Ole Tange writes: > As I read it the output tells me what was done during the milliseconds: No, you have a fundamental misconception here. The notation means that the first output row from a plan step was delivered after X milliseconds, and the last row after Y milliseconds. The "gap" you are looking at is the time to do the Sort (since a sort can't deliver the first output row until it's finished the sort). It is gonna take a while to sort 175000 rows ... but possibly increasing sort_mem would help. regards, tom lane