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 1ozseh-0001oY-Hx for pgsql-admin@arkaria.postgresql.org; Tue, 29 Nov 2022 04:55:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ozseg-00017y-9R for pgsql-admin@arkaria.postgresql.org; Tue, 29 Nov 2022 04:55:38 +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 1ozsef-00017J-VW for pgsql-admin@lists.postgresql.org; Tue, 29 Nov 2022 04:55:37 +0000 Received: from mailout.easymail.ca ([64.68.200.34]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ozsed-0007W0-DI for pgsql-admin@lists.postgresql.org; Tue, 29 Nov 2022 04:55:36 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 857AFE718E; Tue, 29 Nov 2022 04:55:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo08-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo08-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TAHFon3Qxaiu; Tue, 29 Nov 2022 04:55:33 +0000 (UTC) Received: from smtpclient.apple (unknown [165.140.184.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 0C43BE714E; Tue, 29 Nov 2022 04:55:32 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.200.110.1.12\)) Subject: Re: regression in PG 15.1 From: Scott Ribe In-Reply-To: <311DB0F5-E723-4215-8497-0186A3C25224@elevated-dev.com> Date: Mon, 28 Nov 2022 21:55:22 -0700 Cc: Pgsql-admin Content-Transfer-Encoding: quoted-printable Message-Id: References: <543106.1669646690@sss.pgh.pa.us> <4B29C00C-028D-43AE-98F8-793BFC461CA5@elevated-dev.com> <554068.1669648550@sss.pgh.pa.us> <311DB0F5-E723-4215-8497-0186A3C25224@elevated-dev.com> To: Tom Lane X-Mailer: Apple Mail (2.3731.200.110.1.12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk OK, this is not a regression, but a combination of things: - in 14, it is searching all partitions, but is fast enough that I never = noticed (log_min_duration is 1s) - in 15, at first try it took 30s for JIT, oops - with that turned off, performance was still really bad - statistics were not properly updated after the upgrade to 15 - and a big jump was made in a monotonically increasing serial being = searched on - instead of 142 index scans, 141 returning 0, and 1 returning a few = rows, we got 142 seq scans - problem fixed itself while I was still figuring it all out, because of = normal vacuum thresholds=