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 1ow2co-0005Cx-Kh for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Nov 2022 14:45:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ow2cn-0004TP-Hx for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Nov 2022 14:45:49 +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 1ow2cn-0004TG-8i for pgsql-hackers@lists.postgresql.org; Fri, 18 Nov 2022 14:45:49 +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 1ow2cl-0007JP-6V for pgsql-hackers@lists.postgresql.org; Fri, 18 Nov 2022 14:45:48 +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 2AIEjihm2185328; Fri, 18 Nov 2022 09:45:44 -0500 From: Tom Lane To: Tomas Vondra cc: David Geier , Richard Guo , PostgreSQL Developers Subject: Re: Optimize join selectivity estimation by not reading MCV stats for unique join attributes In-reply-to: <53950f93-8cce-4440-52f1-5879653c6803@enterprisedb.com> References: <522124.1668179795@sss.pgh.pa.us> <16acb727-24e8-6453-1711-aae339802966@gmail.com> <2f30ba9c-b707-55ae-0afd-68eb6a8a7708@enterprisedb.com> <2067066.1668731970@sss.pgh.pa.us> <2106238.1668735410@sss.pgh.pa.us> <2130228.1668748896@sss.pgh.pa.us> <712310f5-a5c7-b833-4f71-b562c5f2de9b@gmail.com> <53950f93-8cce-4440-52f1-5879653c6803@enterprisedb.com> Comments: In-reply-to Tomas Vondra message dated "Fri, 18 Nov 2022 14:00:06 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2185326.1668782744.1@sss.pgh.pa.us> Date: Fri, 18 Nov 2022 09:45:44 -0500 Message-ID: <2185327.1668782744@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Tomas Vondra writes: > On 11/18/22 09:54, David Geier wrote: >> I couldn't come up with any reasonable way of writing an automated test >> for that. > I don't think you can write a test for this, because there is no change > to behavior that can be observed by the user. Yeah, and the delta in performance is surely too small to be measured reliably in the buildfarm. I think coverage will have to be sufficient. regards, tom lane