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 1jmPX7-000809-Jw for pgsql-performance@arkaria.postgresql.org; Fri, 19 Jun 2020 22:30:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jmPX6-0003l3-GV for pgsql-performance@arkaria.postgresql.org; Fri, 19 Jun 2020 22:30:48 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jmPX6-0003kw-56 for pgsql-performance@lists.postgresql.org; Fri, 19 Jun 2020 22:30:48 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jmPX3-0008N7-RV for pgsql-performance@lists.postgresql.org; Fri, 19 Jun 2020 22:30:47 +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 05JMUjET1760786; Fri, 19 Jun 2020 18:30:45 -0400 From: Tom Lane To: Kenneth Marshall cc: pgsql-performance@lists.postgresql.org Subject: Re: PostgreSQL 12.3 slow index scan chosen In-reply-to: <20200619222533.GN1497@aart.rice.edu> References: <20200619194914.GI1497@aart.rice.edu> <1755412.1592597470@sss.pgh.pa.us> <20200619204950.GL1497@aart.rice.edu> <1757512.1592600355@sss.pgh.pa.us> <20200619212338.GM1497@aart.rice.edu> <1759984.1592604634@sss.pgh.pa.us> <20200619222533.GN1497@aart.rice.edu> Comments: In-reply-to Kenneth Marshall message dated "Fri, 19 Jun 2020 17:25:33 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1760784.1592605845.1@sss.pgh.pa.us> Date: Fri, 19 Jun 2020 18:30:45 -0400 Message-ID: <1760785.1592605845@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Kenneth Marshall writes: > On Fri, Jun 19, 2020 at 06:10:34PM -0400, Tom Lane wrote: >> Hmm, does seem like you have some outlier keys. Are any of the keys in >> the column you're trying to join to larger than 27667772? > The only values above 27667772? for objectid are: Sorry, I meant the other join column, ie articles.id. regards, tom lane