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 1ozfNQ-0001Lz-Qb for pgsql-admin@arkaria.postgresql.org; Mon, 28 Nov 2022 14:44:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ozfNP-0004vv-Iu for pgsql-admin@arkaria.postgresql.org; Mon, 28 Nov 2022 14:44:55 +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 1ozfNP-0004vj-8h for pgsql-admin@lists.postgresql.org; Mon, 28 Nov 2022 14:44:55 +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 1ozfNN-0005pO-9D for pgsql-admin@lists.postgresql.org; Mon, 28 Nov 2022 14:44:54 +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 2ASEioDn543107; Mon, 28 Nov 2022 09:44:50 -0500 From: Tom Lane To: Scott Ribe cc: Pgsql-admin Subject: Re: regression in PG 15.1 In-reply-to: References: Comments: In-reply-to Scott Ribe message dated "Mon, 28 Nov 2022 07:41:24 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <543105.1669646690.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 28 Nov 2022 09:44:50 -0500 Message-ID: <543106.1669646690@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Scott Ribe writes: > select * from tbl where txid > something and tbl_id =3D (select id fro= m reftbl where name =3D 'someval'); > ^^^ fails to exclude partitions, kicks off parallel scans on all 142, ta= kes 23,170ms Why do you say this is a regression? From what I know of the partition pruning logic (admittedly not a whole lot), I don't think we'd have ever pruned on the basis of such a constraint. regards, tom lane