X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 5A32C9FA463 for ; Sun, 23 Jul 2006 12:04:31 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 92927-03 for ; Sun, 23 Jul 2006 12:04:26 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from moonunit2.moonview.localnet (wsip-70-167-125-69.sd.sd.cox.net [70.167.125.69]) by postgresql.org (Postfix) with ESMTP id 81EF79FA425 for ; Sun, 23 Jul 2006 12:04:25 -0300 (ADT) Received: from [192.168.0.3] (moonunit3.moonview.localnet [192.168.0.3]) by moonunit2.moonview.localnet (8.13.1/8.13.1) with ESMTP id k6NF4Kio027136; Sun, 23 Jul 2006 08:04:21 -0700 Message-ID: <44C381CF.4050800@modgraph-usa.com> Date: Sun, 23 Jul 2006 07:03:59 -0700 From: "Craig A. James" User-Agent: Thunderbird 1.5.0.4 (X11/20060516) MIME-Version: 1.0 To: Michael Stone , pgsql-performance@postgresql.org Subject: Re: Forcing using index instead of sequential scan? References: <26827.1153585341@sss.pgh.pa.us> <44C25FDD.8070003@modgraph-usa.com> <20060723110724.GU8069@mathom.us> In-Reply-To: <20060723110724.GU8069@mathom.us> 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.135 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200607/226 X-Sequence-Number: 20086 Michael Stone wrote: > On Sat, Jul 22, 2006 at 10:26:53AM -0700, Craig A. James wrote: >> This causes massive file-system activity and flushes all files that >> the kernel has cached. If you run this between each Postgres test >> (let it run for a couple minutes), it gives you an apples-to-apples >> comparison between successive benchmarks, and eliminates the effects >> of caching. > > Assuming a system with small ram or an unusually large system > installation. Unmounting is a much more realiable mechanism. Indeed, but it only works if you can. For example, in my small-ish installation, my WAL and system tables are mounted on the root disk. Or someone might not have super-user access. Craig