Re: Partition pruning not working on updates

2023-07-25 Thread David Rowley
On Tue, 25 Jul 2023 at 20:45, Mr.Bim wrote: > Partition pruning is not working on the updates query, am I missing something? In PG13, partition pruning for UPDATE and DELETE only works during query planning. Because you're using CURRENT_TIMESTAMP, that's not an immutable expression which can be e

Partition pruning not working on updates

2023-07-25 Thread Mr.Bim
Hello, Partition pruning is not working on the updates query, am I missing something?  Able get around this by manually pinning the table partition to the date partition but, it's a manual process.  PostgreSQL 13.8 on AWS Partition table using pg_partman v4.5.1Each daily partition contains about 1