Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YtLmV-0002os-HQ for pgsql-hackers@arkaria.postgresql.org; Fri, 15 May 2015 20:00:27 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YtLmV-0002c3-18 for pgsql-hackers@arkaria.postgresql.org; Fri, 15 May 2015 20:00:27 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YtLmS-0002ZP-UT for pgsql-hackers@postgresql.org; Fri, 15 May 2015 20:00:25 +0000 Received: from mx-out.zmailcloud.com ([192.198.85.98] helo=mx-out-1.zmailcloud.com) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1YtLmQ-0000HC-BF for pgsql-hackers@postgresql.org; Fri, 15 May 2015 20:00:23 +0000 Received: from smtp.01.com (smtp.01.com [10.10.0.43]) by mx-out-1.zmailcloud.com (Postfix) with ESMTP id B738A564141; Fri, 15 May 2015 15:00:21 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by smtp-out-1.01.com (Postfix) with ESMTP id 99F9FA04C9; Fri, 15 May 2015 15:00:21 -0500 (CDT) X-Virus-Scanned: amavisd-new at smtp-out-1.01.com Received: from smtp.01.com ([127.0.0.1]) by localhost (smtp-out-1.01.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8vBPb2cbg30u; Fri, 15 May 2015 15:00:21 -0500 (CDT) Received: from smtp.01.com (localhost [127.0.0.1]) by smtp-out-1.01.com (Postfix) with ESMTP id 6508FA03DB; Fri, 15 May 2015 15:00:21 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by smtp-out-1.01.com (Postfix) with ESMTP id 321C4A04C9; Fri, 15 May 2015 15:00:21 -0500 (CDT) X-Virus-Scanned: amavisd-new at smtp-out-1.01.com Received: from smtp.01.com ([127.0.0.1]) by localhost (smtp-out-1.01.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id YQG-x12RPtAq; Fri, 15 May 2015 15:00:21 -0500 (CDT) Received: from [172.47.23.104] (50-0-190-244.dsl.dynamic.fusionbroadband.com [50.0.190.244]) by smtp-out-1.01.com (Postfix) with ESMTPSA id 70A59A03DB; Fri, 15 May 2015 15:00:20 -0500 (CDT) Message-ID: <55565053.9030009@agliodbs.com> Date: Fri, 15 May 2015 13:00:19 -0700 From: Josh Berkus Organization: PostgreSQL Experts Inc. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Robert Haas CC: Jeff Janes , Tomas Vondra , "pgsql-hackers@postgresql.org" Subject: Re: PATCH: adaptive ndistinct estimator v4 References: <541A2335.3060100@agliodbs.com> <542DADEB.2080103@agliodbs.com> <54381D20.9010501@fuzzy.cz> <5472416C.3080506@fuzzy.cz> <5483B346.6000203@fuzzy.cz> <551AEF45.7010700@2ndquadrant.com> <5542D4CF.5060700@2ndquadrant.com> <55564A96.7040506@agliodbs.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 05/15/2015 12:58 PM, Robert Haas wrote: > On Fri, May 15, 2015 at 3:35 PM, Josh Berkus wrote: >> On 05/15/2015 11:30 AM, Robert Haas wrote: >>> Once we enter beta (or even feature freeze), it's too late to whack >>> around the algorithm heavily. We're pretty much committed to >>> releasing and supporting whatever we have got at that point. I guess >>> we could revert it if it doesn't work out, but that's about the only >>> option at that point. We have more flexibility during the main part >>> of the development cycle. But your point is certainly valid and I >>> don't mean to dispute it. >> >> I will finally have a customer workload available to test this on this >> weekend. That's been rather delayed by the availability of customer >> hardware,because I'm not allowed to copy out the database. However, >> this is a database which suffers from multiple ndistinct estimation >> issues in production, so I should be able to get a set of stats back by >> Monday which would show how much of a general improvement it is. >> >> I realize that's after the deadline, but there wasn't much I could do >> about it. I've tried to simulate the kind of estimation issues I've >> seen, but they don't simulate well. > > This is clearly 9.6 material at this point, and has been for a while. > The patch - at least the last version I looked at - didn't store > anything different in pg_statistic. It just logged what it would have > stored. So testing is good, but there's not a question of pushing > this into 9.5. I'm personally OK with that. The last thing we want to do is make query costing changes *in haste*. -- Josh Berkus PostgreSQL Experts Inc. http://pgexperts.com -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers