Planning with many partitions
Reducing planning time and memory for queries over many partitions, including partitionwise joins.
Versions
- PostgreSQL 19 · worked-on · improved · moderate
- PostgreSQL 18 · shipped · improved · major · 5 commits · +855 / -221 lines
- PostgreSQL 17 · shipped · improved · moderate · 4 commits · +361 / -101 lines
- PostgreSQL 16 · shipped · improved · moderate · 8 commits · +1.2k / -677 lines
- PostgreSQL 15 · worked-on · improved · major
Threads
- Memory consumed by paths during partitionwise join planning
- [PoC] Reducing planning time when tables have many partitions
- Reducing memory consumed by RestrictInfo list translations in partitionwise join planning
- BUG #18806: When enable_rartitionwise_join is set to ON, the database shuts down abnormally
- Quadratic planning time for ordered paths over partitioned tables
- BUG #18729: update with multiple subpartitions return error: too many range table entries
- [PoC] Partition path cache
- Assert failure on bms_equal(child_joinrel->relids, child_joinrelids)
- Memory consumed by child SpecialJoinInfo in partitionwise join planning
- Optimize planner memory consumption for huge arrays
- pgsql: Add EXPLAIN (MEMORY) to report planner memory consumption
- Report planning memory in EXPLAIN ANALYZE
- BUG #17798: Incorrect memory access occurs when using BEFORE ROW UPDATE trigger
- Memory consumption during partitionwise join planning
- In Postgres 16 BETA, should the ParseNamespaceItem have the same index as it's RangeTableEntry?
- ExecRTCheckPerms() and many prunable partitions
- ERROR: permission info at index 1 ....
- Query planning on partitioned table causes postgres 13.4 to consume all memory
- making update/delete of inheritance trees scale better
- BUG #16558: `AND FALSE` increases planning time of query on 2 tables with 1000 partitions to more than 7 seconds
- memory problems and crash of db when deleting data from table with thousands of partitions
- partition table slow planning
- Excessive memory usage in multi-statement queries w/ partitioning
- BUG #15847: Running out of memory when planning full outer joins involving many partitions
- Should we warn against using too many partitions?
- speeding up planning with partitions
- Speeding up creating UPDATE/DELETE generic plan for partitioned table into a lot
- partitioning performance tests after recent patches
- Delay locking partitions during query execution
- Delay locking partitions during INSERT and UPDATE
- executor relation handling
- Query with high planning time at version 11.1 compared versions 10.5 and 11.0
- Speeding up creating UPDATE/DELETE generic plan for partitioned table into a lot
- PostgreSQL partition tables use more private memory
- Performance of SELECT in a table partitioned into a lot
- Planning time of Generic plan for a table partitioned into a lot
- Performance of the partitioning in the large scale
- Make executor's Range Table an array instead of a List
- How to make partitioning scale better for larger numbers of partitions
- Performance regression with PostgreSQL 11 and partitioning
- open/lseek overhead with many partitions (including with "faster partitioning pruning")