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 3524CD1E959 for ; Thu, 29 Apr 2004 17:26:14 -0300 (ADT) 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 64003-05 for ; Thu, 29 Apr 2004 17:25:54 -0300 (ADT) Received: from gpdnet.co.uk (gpdnet.plus.com [212.56.100.243]) by svr1.postgresql.org (Postfix) with ESMTP id 2F97BD1E968 for ; Thu, 29 Apr 2004 17:25:52 -0300 (ADT) Received: from gary (unverified [192.168.1.2]) by gpdnet.co.uk (SurgeMail 1.8g3) with ESMTP id 236 for ; Thu, 29 Apr 2004 21:25:16 +0100 From: "Gary Doades" To: pgsql-performance@postgresql.org Date: Thu, 29 Apr 2004 21:26:18 +0100 MIME-Version: 1.0 Subject: Re: planner/optimizer question Message-ID: <409172FA.1509.14C7E00E@localhost> In-reply-to: <003101c42e26$4c384e90$2500fa0a@CardServices.TCI.com> References: <409153EF.24647.144E9BF7@localhost> X-mailer: Pegasus Mail for Windows (v4.12a) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-Server: High Performance Mail Server - http://surgemail.com X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200404/502 X-Sequence-Number: 6802 > It's also entirely possible your indices are using inaccurate > statistical information. Have you ANALYZEd recently? > In this example the statistics don't matter. The plans used were the same for MSSQL and Postgres. I was trying to eliminate the difference in plans between the two, which obviously does make a difference, sometimes in MSSQL favour and sometimes the other way round. Both systems, having decided to do the same index scan, took noticably different times. The Postgres database was fully vacuumed and analysed anyway. I agree about MSSQL recovery time. it sucks. This is why they are making a big point about the improved recovery time in "yukon". Although the recovery time is important, I see this as an exception, whereas at the moment I am interested in the everyday. Cheers, Gary.