Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 8FC6C13364DE for ; Sat, 23 Apr 2011 13:11:11 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 52730-02 for ; Sat, 23 Apr 2011 16:11:04 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-yx0-f174.google.com (mail-yx0-f174.google.com [209.85.213.174]) by mail.postgresql.org (Postfix) with ESMTP id 94301133616B for ; Sat, 23 Apr 2011 13:11:03 -0300 (ADT) Received: by yxs7 with SMTP id 7so335933yxs.19 for ; Sat, 23 Apr 2011 09:11:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:references:in-reply-to:mime-version :content-transfer-encoding:content-type:message-id:cc:x-mailer:from :subject:date:to; bh=KqTcfgOIeMQPhPGb4UbCsDSadyfO0e9lkI9FvYFiiuU=; b=AsNhUHdvUxEPSrpexeTny1rGkxnE188lWeL2CSmiKDtDSUcpCBUYj1LJXrlZFX5d+4 fTAiXfqis8cwOyq5kaiRkbp6jLFhVgcmBEZtzx1iJPSHmGPUJVjff5QFR+mhCwqtKIxW XAR2IAfWXzH/CC9sRB1bzg0RNnO1i11KobURw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=references:in-reply-to:mime-version:content-transfer-encoding :content-type:message-id:cc:x-mailer:from:subject:date:to; b=kbJuGLVmzpyUUTp0BbA/5WhQkam4LRbeZiNvrtUE3whHjIbDt76o1mDSJUHMxqDaQc fP7ar5kKLVA6KPl1wuVZQQyS7sX7L4QiMzhg+J++80GWUa984lgLP7wpD0TDCi9ntFiK hT46eQQFqFHmQv4eXdVoTFXg67jiqJ3qk4DJk= Received: by 10.236.77.132 with SMTP id d4mr2312889yhe.398.1303575062703; Sat, 23 Apr 2011 09:11:02 -0700 (PDT) Received: from [10.4.195.72] ([198.228.194.51]) by mx.google.com with ESMTPS id 62sm1630772yhl.38.2011.04.23.09.10.59 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 23 Apr 2011 09:11:01 -0700 (PDT) References: <4D8A29F2.9080105@agliodbs.com> <4D8A581D.5080704@agliodbs.com> <4286.1300914004@sss.pgh.pa.us> <4D8A8AB8.7040401@agliodbs.com> <3210.1301063084@sss.pgh.pa.us> <4DAE3BF0.2060806@agliodbs.com> In-Reply-To: <4DAE3BF0.2060806@agliodbs.com> Mime-Version: 1.0 (iPhone Mail 8A293) Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Message-Id: Cc: Tom Lane , Claudio Freire , postgres performance list X-Mailer: iPhone Mail (8A293) From: Robert Haas Subject: Re: Shouldn't we have a way to avoid "risky" plans? Date: Sat, 23 Apr 2011 12:11:38 -0400 To: Josh Berkus X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.898 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RFC_ABUSE_POST=0.001 X-Spam-Level: X-Archive-Number: 201104/332 X-Sequence-Number: 43394 On Apr 19, 2011, at 9:50 PM, Josh Berkus wrote: > For example, on very large tables I've been known to set > analyze_scale_factor to 0 and analyze_threshold to 5000. Huh? Why? > ...Robert