Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bF2IM-0008IY-Of for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Jun 2016 16:43:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bF2IM-0001VU-Bk for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Jun 2016 16:43:30 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bF2IL-0001TK-C9 for pgsql-hackers@postgresql.org; Mon, 20 Jun 2016 16:43:29 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bF2II-0001p8-NS for pgsql-hackers@postgresql.org; Mon, 20 Jun 2016 16:43:28 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u5KGhPN5028464; Mon, 20 Jun 2016 12:43:25 -0400 From: Tom Lane To: Tomas Vondra cc: pgsql-hackers@postgresql.org Subject: Re: New design for FK-based join selectivity estimation In-reply-to: <747f8de5-266e-cf7e-b0ab-57b8a6725517@2ndquadrant.com> References: <31041.1465069446@sss.pgh.pa.us> <25469.1465138626@sss.pgh.pa.us> <15245.1466031608@sss.pgh.pa.us> <20877.1466175216@sss.pgh.pa.us> <15396.1466268742@sss.pgh.pa.us> <747f8de5-266e-cf7e-b0ab-57b8a6725517@2ndquadrant.com> Comments: In-reply-to Tomas Vondra message dated "Sun, 19 Jun 2016 12:54:40 +0200" Date: Mon, 20 Jun 2016 12:43:25 -0400 Message-ID: <28463.1466441005@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) 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 Tomas Vondra writes: > On 06/18/2016 06:52 PM, Tom Lane wrote: >> I concur, actually, but I feel that it's out of scope for this >> particular patch, which is only trying to replace the functionality >> that was committed previously. If you want to come up with a patch on >> top of this that adds some accounting for NULLs, I'd be willing to >> consider it as a post-beta2 improvement. > Sure, fair enough. By post-beta2 you mean for 9.7, or still for 9.6? I think it'd be legitimate to address the NULLs question for 9.6, as long as the patch is not very large. If it does turn out to be invasive or otherwise hard to review, waiting for 9.7 might be more prudent. But I argued upthread that failing to consider nulls was a bug in the original patch, so dealing with them could be considered a bug fix. > If I could wish one more thing - could you briefly explain why you > rewrote the patch the way you did? I'd like to learn from this and while > I think I kinda understand most of the changes, I'm not really sure I > got it right. I don't at the moment recall everything I changed, but I'm happy to answer questions that are more specific than that one ... regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers