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 87A8053DB1 for ; Fri, 22 Apr 2005 06:04:28 -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 59260-02 for ; Fri, 22 Apr 2005 09:04:23 +0000 (GMT) Received: from localhost.net (cust.89.121.adsl.cistron.nl [195.64.89.121]) by svr1.postgresql.org (Postfix) with ESMTP id 94F7B53EEC for ; Fri, 22 Apr 2005 06:04:20 -0300 (ADT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost.net (Postfix) with ESMTP id E2E4983D6D; Fri, 22 Apr 2005 11:04:20 +0200 (CEST) Message-ID: <4268BE11.6070200@trust-factory.com> Date: Fri, 22 Apr 2005 11:04:17 +0200 From: Richard van den Berg Organization: Trust Factory User-Agent: Debian Thunderbird 1.0.2 (X11/20050331) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tom Lane Cc: pgsql-perform Subject: Re: When are index scans used over seq scans? References: <426665A0.1080102@trust-factory.com> <26710.1114007961@sss.pgh.pa.us> <4267612C.10803@trust-factory.com> <15074.1114093502@sss.pgh.pa.us> <4267D1ED.7010606@trust-factory.com> <16775.1114100611@sss.pgh.pa.us> In-Reply-To: <16775.1114100611@sss.pgh.pa.us> X-Enigmail-Version: 0.90.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200504/609 X-Sequence-Number: 12006 Tom Lane wrote: > Are the tables in question particularly wide (many columns)? Yes they are. They both have 20 columns. If I cut down the duration table to just 1 column of timestamps, the planner uses the index. Interesting, so I could store just the timestamps in another table (view doesn't help) to speed up this query. I am using the debian package. How can I tell if profiling is enabled? Thanks a lot, -- Richard van den Berg, CISSP ------------------------------------------- Trust Factory B.V. | www.dna-portal.net Bazarstraat 44a | www.trust-factory.com 2518AK The Hague | Phone: +31 70 3620684 The Netherlands | Fax : +31 70 3603009 -------------------------------------------