Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 8C4579FA316 for ; Sat, 23 Dec 2006 15:42:25 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 68075-08 for ; Sat, 23 Dec 2006 15:42:19 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id E17E59FA111 for ; Sat, 23 Dec 2006 15:42:20 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from spunkymail-a3.dreamhost.com (sd-green-bigip-177.dreamhost.com [208.97.132.177]) by svr4.postgresql.org (Postfix) with ESMTP id 4FBC65AF883 for ; Sat, 23 Dec 2006 19:42:20 +0000 (GMT) Received: from [192.168.1.238] (adsl-75-31-110-76.dsl.irvnca.sbcglobal.net [75.31.110.76]) by spunkymail-a3.dreamhost.com (Postfix) with ESMTP id 4AD01196EAD; Sat, 23 Dec 2006 11:42:14 -0800 (PST) Message-ID: <458D867C.5000207@araisoft.com> Date: Sat, 23 Dec 2006 11:41:48 -0800 From: Benjamin Arai User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: "A. Kretschmer" Cc: pgsql-general@postgresql.org Subject: Re: Problem with large table not using indexes (I think) References: <458D82D0.5050903@araisoft.com> <20061223193339.GA8688@a-kretschmer.de> In-Reply-To: <20061223193339.GA8688@a-kretschmer.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.301 tagged_above=0 required=5 tests=AWL, BAYES_50 X-Spam-Level: X-Archive-Number: 200612/1395 X-Sequence-Number: 106333 Function Scan on "getTimeSeries" (cost=0.00..12.50 rows=1000 width=24) (actual time=11065.981..11067.008 rows=262 loops=1) Total runtime: 11067.991 ms (2 rows) It is a PL function. Do I need to break it down? A. Kretschmer wrote: > am Sat, dem 23.12.2006, um 11:26:08 -0800 mailte Benjamin Arai folgendes: > >> because it would literally take over a week to complete. Any help would >> be greatly appreciated. >> > > What says an 'explain analyse'? > > > Andreas >