Re: partition pruning only works for select but update

From: Justin Pryzby <pryzby(at)telsasoft(dot)com>
To: "James Pang (chaolpan)" <chaolpan(at)cisco(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-performance(at)lists(dot)postgresql(dot)org
Subject: Re: partition pruning only works for select but update
Date: 2022-07-01 13:13:11
Message-ID: 20220701131311.GC13040@telsasoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Fri, Jul 01, 2022 at 08:30:40AM +0000, James Pang (chaolpan) wrote:
> We have other application depend on V13, possible to backport code changes to V13 as https://git.postgresql.org/gitweb/?p=postgresql.git;a=patch;h=86dc90056dfdbd9d1b891718d2e5614e3e432f35

Do you mean that the other application needs to be updated to work with v14?
Or that you haven't checked yet if they work with v14?

In any case, I'm sure the feature won't be backpatched to v13 - it's an
improvement but not a bugfix.

--
Justin

> -----Original Message-----
> From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
> Sent: Tuesday, June 28, 2022 9:30 PM
> To: James Pang (chaolpan) <chaolpan(at)cisco(dot)com>
> Cc: pgsql-performance(at)lists(dot)postgresql(dot)org
> Subject: Re: partition pruning only works for select but update
>
> "James Pang (chaolpan)" <chaolpan(at)cisco(dot)com> writes:
> > But when
> > Explain update table set .. where partitionkey between to_timestamp() and to_timestamp();
> > It still show all of partitions with update ...
>
> In releases before v14, partition pruning is far stupider for UPDATE (and DELETE) than it is for SELECT.

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2022-07-01 13:18:28 Re: partition pruning only works for select but update
Previous Message James Pang (chaolpan) 2022-07-01 08:30:40 RE: partition pruning only works for select but update