Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gtfQx-0000ts-Qn for pgsql-performance@arkaria.postgresql.org; Tue, 12 Feb 2019 21:17:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gtfQw-00034A-1Y for pgsql-performance@arkaria.postgresql.org; Tue, 12 Feb 2019 21:17:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gtfQv-000343-QO for pgsql-performance@lists.postgresql.org; Tue, 12 Feb 2019 21:17:37 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gtfQp-00069x-Op for pgsql-performance@lists.postgresql.org; Tue, 12 Feb 2019 21:17:37 +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 x1CLHNmx003998; Tue, 12 Feb 2019 16:17:23 -0500 From: Tom Lane To: Jeff Janes cc: Thomas Kellerer , pgsql-performance@lists.postgresql.org Subject: Re: Bloom index cost model seems to be wrong In-reply-to: References: <2126.1549986118@sss.pgh.pa.us> Comments: In-reply-to Jeff Janes message dated "Tue, 12 Feb 2019 14:56:40 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3996.1550006243.1@sss.pgh.pa.us> Date: Tue, 12 Feb 2019 16:17:23 -0500 Message-ID: <3997.1550006243@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Jeff Janes writes: > In order for bloom (or any other users of CREATE ACCESS METHOD, if there > are any) to have a fighting chance to do better, I think many of selfuncs.c > currently private functions would have to be declared in some header file, > perhaps utils/selfuncs.h. But that then requires a cascade of other > inclusions. Perhaps that is why it was not done. I'm just in the midst of refactoring that stuff, so if you have suggestions, let's hear 'em. It's possible that a good cost model for bloom is so far outside genericcostestimate's ideas that trying to use it is not a good idea anyway. regards, tom lane