Re: BUG #16745: delete does not prune partitions on declarative partitioned table

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: akattunga(at)gmail(dot)com
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #16745: delete does not prune partitions on declarative partitioned table
Date: 2020-11-25 21:58:01
Message-ID: 572035.1606341481@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

PG Bug reporting form <noreply(at)postgresql(dot)org> writes:
> If I execute:
> select * FROM FAC_ITEM WHERE FCODDIST='' AND FSUCURS=1 AND
> FFECHAI=current_date;
> it use only one partition
> but:
> delete FROM FAC_ITEM WHERE FCODDIST='' AND FSUCURS=1 AND
> FFECHAI=current_date;
> scan all partitions

> Is there any regression?

No. There's work afoot to improve this, but it wasn't any better before.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Christian 2020-11-25 22:04:41 Re: BUG #16745: delete does not prune partitions on declarative partitioned table
Previous Message Christian 2020-11-25 21:40:11 Re: BUG #16745: delete does not prune partitions on declarative partitioned table