pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Scott Ribe <scott_ribe@elevated-dev.com>
Cc: Pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: regression in PG 15.1
Date: Mon, 28 Nov 2022 09:44:50 -0500
Message-ID: <543106.1669646690@sss.pgh.pa.us> (raw)
In-Reply-To: <D86D21A2-20CB-4E28-AF0A-8C2C0139DA97@elevated-dev.com>
References: <D86D21A2-20CB-4E28-AF0A-8C2C0139DA97@elevated-dev.com>

Scott Ribe <scott_ribe@elevated-dev.com> writes:
>   select * from tbl where txid > something and tbl_id = (select id from reftbl where name = 'someval');
> ^^^ fails to exclude partitions, kicks off parallel scans on all 142, takes 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





view thread (8+ messages)  latest in thread

Message-ID: <543106.1669646690@sss.pgh.pa.us>
Permalink:  ../543106.1669646690@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/543106.1669646690@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, scott_ribe@elevated-dev.com, pgsql-admin@lists.postgresql.org
  Subject: Re: regression in PG 15.1
  In-Reply-To: <543106.1669646690@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox