Partition-wise join
Joining partitioned tables partition by partition, including advanced partition matching for non-identical bounds. Introduced in PostgreSQL 11.
Versions
- PostgreSQL 20 · worked-on · improved · moderate
- PostgreSQL 19 · worked-on · improved · moderate
- PostgreSQL 18 · shipped · improved · moderate · 1 commit · +214 / -21 lines
- PostgreSQL 17 · worked-on · improved · major
- PostgreSQL 16 · worked-on · improved · moderate
- PostgreSQL 15 · worked-on · improved · major
- PostgreSQL 14 · worked-on · improved · major
- PostgreSQL 13 · worked-on · improved · major
Threads
- BUG #19945: Partitionwise join omits lateral dependency from Memoize cache key
- Assertion failure in get_matching_part_pairs() with pruned partitions
- Enable partitionwise join for partition keys wrapped by RelabelType
- "variable not found in subplan target lists" with partitionwise join
- BUG #19653: "variable not found in subplan target list" during planning with parallel parameterized nested loop,
- apply_scanjoin_target_to_paths and partitionwise join
- BUG #19083: Foreign inner join is the case for char() keys but not for varchar()
- BUG #19071: commit b448f1c8d broke LEFT JOIN pushdown
- Expression errors with "FOR UPDATE" and postgres_fdw with partition wise join enabled.
- BUG #18868: /src/backend/optimizer/path/joinrels.c list_head can be NULL
- BUG #18805: A specific query on a hash partitioned table always causes a "signal 11: Segmentation fault" error.
- Wrong result when enable_partitionwise_join is on if collation of PartitionKey and Column is different.
- Asymmetric partition-wise JOIN
- A problem about partitionwise join
- Add mention of execution time memory for enable_partitionwise_* GUCs
- Oversight in reparameterize_path_by_child leading to executor crash
- BUG #18360: Invalid memory access occurs when using geqo
- Missing MaterialPath support in reparameterize_path_by_child
- dummy relation in partitionwise join
- a comment in joinrel.c: compute_partition_bounds()
- RelOptInfo.all_partrels does not seem to do very much
- Combination of geqo and enable_partitionwise_join leads to crashes in the regression tests
- Partitionwise join fails under GEQO
- Minor cleanup of partbounds.c
- BUG #16536: Segfault with partition-wise joins
- advanced partition matching algorithm for partition-wise join
- warning in partioning code
- d25ea01275 and partitionwise join
- Unmatched test and comment in partition_join.sql regression test
- v12.0: ERROR: could not find pathkey item to sort
- Useless bms_free() calls in build_child_join_rel()
- BUG #15947: Worse plan is chosen after giving the planner more freedom (partitionwise join)
- BUG #15430: partition-wise join only works in combination with pruning on 1 partition
- rowcount estimate varies WRT partitionwise_join
- Test patch for partitionwise join with partitioned tables containing default partition
- Partition-wise join for join between (declaratively) partitioned tables
- spelling of enable_partition_wise_join
- Crash in partition-wise join involving dummy partitioned relation
- Incorrect debug info printed in generate_partition_wise_join_paths
- Out of date comment in cached_plan_cost
- pgsql: Associate partitioning information with each RelOptInfo.
- pgsql: Expand partitioned table RTEs level by level, without flattening
- paths in partitions of a dummy partitioned table