Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1onKor-0003XS-6k for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Oct 2022 14:22:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1onKop-0003Bo-Vl for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Oct 2022 14:22:15 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1onKll-0006U5-8r for pgsql-hackers@lists.postgresql.org; Tue, 25 Oct 2022 14:19:05 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1onKli-0001eq-Uf for pgsql-hackers@lists.postgresql.org; Tue, 25 Oct 2022 14:19:04 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 29PEIvc24011932; Tue, 25 Oct 2022 10:18:57 -0400 From: Tom Lane To: Alexander Korotkov cc: Ronan Dunklau , Michael Paquier , pgsql-hackers@lists.postgresql.org Subject: Re: Fix gin index cost estimation In-reply-to: References: <3188617.44csPzL39Z@aivenronan> <4768224.31r3eYUQgx@aivenronan> <12071145.O9o76ZdvQC@aivenronan> Comments: In-reply-to Alexander Korotkov message dated "Tue, 25 Oct 2022 17:08:58 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4011930.1666707537.1@sss.pgh.pa.us> Date: Tue, 25 Oct 2022 10:18:57 -0400 Message-ID: <4011931.1666707537@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alexander Korotkov writes: > I think Tom's point was that it's wrong to add a separate entry-tree CPU > cost estimation to another estimation, which tries (very inadequately) to > estimate the whole scan cost. Instead, I propose writing better estimations > for both entry-tree CPU cost and data-trees CPU cost and replacing existing > CPU estimation altogether. Great idea, if someone is willing to do it ... regards, tom lane