Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 276372E3440 for ; Thu, 29 Nov 2007 12:54:42 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 05390-03 for ; Thu, 29 Nov 2007 12:54:37 -0400 (AST) Received: from mail.ecircle.de (mail.ecircle.de [195.140.186.200]) by postgresql.org (Postfix) with ESMTP id 7518B2E342F for ; Thu, 29 Nov 2007 12:54:37 -0400 (AST) Received: from einstein.muc.ecircle.de (einstein.muc.ecircle.de [192.168.1.7]) by mail.ecircle.de (READY) with ESMTP id C3B1611DD45; Thu, 29 Nov 2007 17:54:36 +0100 (CET) Received: from [192.168.1.91] ([192.168.1.91]) by einstein.muc.ecircle.de with Microsoft SMTPSVC(6.0.3790.1830); Thu, 29 Nov 2007 17:54:32 +0100 Subject: Re: TB-sized databases From: Csaba Nagy To: postgres performance list Cc: Gregory Stark , Simon Riggs , Bill Moran In-Reply-To: <13851.1196351131@sss.pgh.pa.us> References: <4544e0330711260904g45d893a8ub1731e245aa8fc84@mail.gmail.com> <474B1407.3090607@laotraesquina.com.ar> <474B1B8C.1030505@gmail.com> <4544e0330711271218h56ce4cc3p280a9fefff24583d@mail.gmail.com> <1196197045.4246.1154.camel@ebony.site> <474CA2FA.2020201@laotraesquina.com.ar> <20071128082716.91bbad9c.wmoran@collaborativefusion.com> <1196257702.31315.6.camel@PCD12478> <1196270576.4246.1246.camel@ebony.site> <878x4hmfd4.fsf@oxford.xeocode.com> <13851.1196351131@sss.pgh.pa.us> Content-Type: text/plain Date: Thu, 29 Nov 2007 17:54:32 +0100 Message-Id: <1196355273.31315.43.camel@PCD12478> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 29 Nov 2007 16:54:32.0885 (UTC) FILETIME=[83E61E50:01C832A8] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/379 X-Sequence-Number: 27794 On Thu, 2007-11-29 at 10:45 -0500, Tom Lane wrote: > Given that this list spends all day every day discussing cases where the > planner is wrong, I'd have to think that that's a bet I wouldn't take. > > You could probably avoid this risk by setting the cutoff at something > like 100 or 1000 times what you really want to tolerate, but how > useful is it then? It would still be useful in the sense that if the planner is taking wrong estimates you must correct it somehow... raise statistics target, rewrite query or other tweaking, you should do something. An error is sometimes better than gradually decreasing performance because of too low statistics target for example. So if the error is thrown because of wrong estimate, it is still a valid error raising a signal that the DBA has to do something about it. It's still true that if the planner estimates too low, it will raise no error and will take the resources. But that's just what we have now, so it wouldn't be a regression of any kind... Cheers, Csaba.