X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 45187D1B540 for ; Thu, 13 Nov 2003 21:53:21 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 38400-08 for ; Thu, 13 Nov 2003 17:52:52 -0400 (AST) Received: from mail.libertyrms.com (unknown [209.167.124.227]) by svr1.postgresql.org (Postfix) with ESMTP id D34AAD1B531 for ; Thu, 13 Nov 2003 17:52:49 -0400 (AST) Received: from [10.1.2.130] (helo=dba2) by mail.libertyrms.com with esmtp (Exim 3.22 #3 (Debian)) id 1AKPOW-0002sK-00 for ; Thu, 13 Nov 2003 16:52:52 -0500 Received: by dba2 (Postfix, from userid 1019) id 037E9CB49; Thu, 13 Nov 2003 16:52:51 -0500 (EST) Date: Thu, 13 Nov 2003 16:52:51 -0500 From: Andrew Sullivan To: pgsql-performance@postgresql.org Subject: Re: strange estimate for number of rows Message-ID: <20031113215251.GL25546@libertyrms.info> Mail-Followup-To: Andrew Sullivan , pgsql-performance@postgresql.org References: <20031113181415.GB25546@libertyrms.info> <5882.1068749786@sss.pgh.pa.us> <3FB3DD1E.2000509@libertyrms.info> <11160.1068754748@sss.pgh.pa.us> <20031113213703.GJ25546@libertyrms.info> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031113213703.GJ25546@libertyrms.info> User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/103 X-Sequence-Number: 4663 On Thu, Nov 13, 2003 at 04:37:03PM -0500, Andrew Sullivan wrote: > Actually, this one's on an internal box, and I think 1.5 is too low > -- it's really just a pair of mirrored SCSI disks on a PCI controller > in this case. That does the trick, though, so maybe I'm just being > too conservantive. I spoke too soon. I'd left enable_seqscan=off set. It doesn't actually prefer an indexscan until I set the random_page_cost to .5. I think that's a little unrealistic ;-) A -- ---- Andrew Sullivan 204-4141 Yonge Street Afilias Canada Toronto, Ontario Canada M2P 2A8 +1 416 646 3304 x110