From: Tom Lane <tgl@sss.pgh.pa.us>
To: akattunga@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16745: delete does not prune partitions on declarative partitioned table
Date: Wed, 25 Nov 2020 16:58:01 -0500
Message-ID: <572035.1606341481@sss.pgh.pa.us> (raw)
In-Reply-To: <16745-e765ee2879fea695@postgresql.org>
References: <16745-e765ee2879fea695@postgresql.org>
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
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-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, akattunga@gmail.com, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16745: delete does not prune partitions on declarative partitioned table
In-Reply-To: <572035.1606341481@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