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 EE7CB3B681E for ; Thu, 16 Dec 2004 17:32:05 +0000 (GMT) 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 79045-08 for ; Thu, 16 Dec 2004 17:32:01 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id EE6CD3B662E for ; Thu, 16 Dec 2004 17:32:01 +0000 (GMT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id iBGHVrSC026004; Thu, 16 Dec 2004 12:31:53 -0500 (EST) To: Jon Anderson Cc: pgsql-performance@postgresql.org Subject: Re: Seqscan rather than Index In-reply-to: <9c7da1c904121609081705d8cc@mail.gmail.com> References: <9c7da1c904121609081705d8cc@mail.gmail.com> Comments: In-reply-to Jon Anderson message dated "Thu, 16 Dec 2004 11:08:20 -0600" Date: Thu, 16 Dec 2004 12:31:53 -0500 Message-ID: <26003.1103218313@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.005 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200412/208 X-Sequence-Number: 9583 Jon Anderson writes: > Any hints on what to do to make PostgreSQL use the index? You might want to reduce random_page_cost a little. Keep in mind that your test case is small enough to fit in RAM and is probably not reflective of what will happen with larger tables. regards, tom lane