Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r89cw-008UuW-Cy for pgsql-general@arkaria.postgresql.org; Wed, 29 Nov 2023 01:44:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1r89cu-008Nm4-HE for pgsql-general@arkaria.postgresql.org; Wed, 29 Nov 2023 01:44:32 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r89cu-008Nlw-6K for pgsql-general@lists.postgresql.org; Wed, 29 Nov 2023 01:44:32 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r89cr-007rLk-EV for pgsql-general@lists.postgresql.org; Wed, 29 Nov 2023 01:44:30 +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 3AT1iSsV205441; Tue, 28 Nov 2023 20:44:28 -0500 From: Tom Lane To: Owen Nelson cc: pgsql-general@lists.postgresql.org Subject: Re: Understanding partial index selection In-reply-to: References: Comments: In-reply-to Owen Nelson message dated "Tue, 28 Nov 2023 17:12:51 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <205439.1701222268.1@sss.pgh.pa.us> Date: Tue, 28 Nov 2023 20:44:28 -0500 Message-ID: <205440.1701222268@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Owen Nelson writes: >> Are your ANALYZE stats up to date on this table? > It's a very good question! Right now, I'm taking it on faith that > autovacuum and autoanalyze are keeping things up to date, but if I'm honest > I've been getting some conflicting information from pg_stat_user_tables and > I'm starting to suspect this might be an AWS Aurora quirk. Oh, you didn't say this was Aurora. Aurora is not really Postgres --- at least, my not-an-insider impression is that the storage engine is quite different. Not sure how much of the advice you got here is relevant to it. regards, tom lane