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 1gjFoV-0007eW-CZ for pgsql-hackers@arkaria.postgresql.org; Tue, 15 Jan 2019 03:54:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gjFoU-0006m7-0T for pgsql-hackers@arkaria.postgresql.org; Tue, 15 Jan 2019 03:54:54 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gjFoT-0006m0-M1 for pgsql-hackers@lists.postgresql.org; Tue, 15 Jan 2019 03:54:53 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gjFoR-0005xK-9R for pgsql-hackers@lists.postgresql.org; Tue, 15 Jan 2019 03:54:52 +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 x0F3slK6000470; Mon, 14 Jan 2019 22:54:47 -0500 From: Tom Lane To: Edmund Horner cc: David Rowley , Tomas Vondra , PostgreSQL Developers Subject: Re: Tid scan improvements In-reply-to: References: <31682.1545415852@sss.pgh.pa.us> Comments: In-reply-to Edmund Horner message dated "Tue, 15 Jan 2019 16:47:09 +1300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <467.1547524487.1@sss.pgh.pa.us> Date: Mon, 14 Jan 2019 22:54:47 -0500 Message-ID: <468.1547524487@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Edmund Horner writes: > On Sat, 22 Dec 2018 at 07:10, Tom Lane wrote: >> I'm not entirely sure why you're bothering; surely nulltestsel is >> unrelated to what this patch is about? > I found that it made a difference with selectivity of range comparisons, > because clauselist_selectivity tries to correct for it (clausesel.c:274): Oh, I see. > I guess we could have a standalone patch to add this for all system columns? +1 regards, tom lane