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 030B78B9F81 for ; Fri, 4 Feb 2005 04:39:53 +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 59538-04 for ; Fri, 4 Feb 2005 04:39:50 +0000 (GMT) Received: from candle.pha.pa.us (pcp01723101pcs.malvrn01.pa.comcast.net [68.83.105.173]) by svr1.postgresql.org (Postfix) with ESMTP id 514F18B9FC2 for ; Fri, 4 Feb 2005 04:39:49 +0000 (GMT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id j144dj528565; Thu, 3 Feb 2005 23:39:45 -0500 (EST) From: Bruce Momjian Message-Id: <200502040439.j144dj528565@candle.pha.pa.us> Subject: Re: Planner really hates nested loops In-Reply-To: <6BCB9D8A16AC4241919521715F4D8BCE4767B0@algol.sollentuna.se> To: Magnus Hagander Date: Thu, 3 Feb 2005 23:39:44 -0500 (EST) Cc: Tom Lane , David Brown , pgsql-performance@postgresql.org X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.394 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO, RCVD_IN_NJABL_DUL, RCVD_IN_SORBS_DUL X-Spam-Level: * X-Archive-Number: 200502/75 X-Sequence-Number: 10404 Magnus Hagander wrote: > > > I'm hoping someone can shed some light on these results. > > > > Not without a lot more detail on how you *got* the results. > > What exactly did you do to force the various plan choices? > > (I see some ridiculous choices of indexscans, for instance, > > suggesting improper use of enable_seqscan in some cases.) > > And what's the "cache rows" and "disk rows" stuff, and how do > > you know that what you were measuring is actually what you > > think it is? I have zero confidence in Windows-atop-ATA as a > > platform for measuring disk-related behaviors, because I > > don't think you can control or even know what caching is going on. > > You can control the writeback-cache from Device Manager->(the > disk)->Policies. And if that is turned off, fsync definitly should write > through, just as on *nix. (write-cache is on by default, no surprise) > > AFAIK, you can't control what is cached for reading. Are you saying that fsync() doesn't write to the platters by default on Win32? -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073