Re: BUG #16745: delete does not prune partitions on declarative partitioned table - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #16745: delete does not prune partitions on declarative partitioned table
Date
Msg-id 572035.1606341481@sss.pgh.pa.us
Whole thread Raw
In response to BUG #16745: delete does not prune partitions on declarative partitioned table  (PG Bug reporting form <noreply@postgresql.org>)
Responses Re: BUG #16745: delete does not prune partitions on declarative partitioned table
List pgsql-bugs
PG Bug reporting form <noreply@postgresql.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



pgsql-bugs by date:

Previous
From: Christian
Date:
Subject: Re: BUG #16745: delete does not prune partitions on declarative partitioned table
Next
From: Christian
Date:
Subject: Re: BUG #16745: delete does not prune partitions on declarative partitioned table