Hash join batch explosion
Avoiding hash join batch explosion under skew and freeing batch files sooner.
Versions
- PostgreSQL 20 · worked-on · improved · moderate
- PostgreSQL 19 · shipped · improved · moderate · 1 commit · +414 / -82 lines
- PostgreSQL 18 · shipped · improved · moderate · 1 commit · +129 / -0 lines
- PostgreSQL 17 · worked-on · improved · minor
- PostgreSQL 16 · worked-on · improved · minor
- PostgreSQL 14 · worked-on · improved · major
- PostgreSQL 13 · worked-on · improved · major
- PostgreSQL 12 · worked-on · improved · major
Threads
- [PG19] Hash join writes null-keyed outer rows to temp files
- BUG #19708: Hash Join becomes about 300x slower with higher work_mem
- Unlinking Parallel Hash Join inner batch files sooner
- Adjusting hash join memory limit to handle batch explosion
- [RFC] Secondary hash to split stuck hash-join batches
- Improve hash join's handling of tuples with null join keys
- [BUG?] estimate_hash_bucket_stats uses wrong ndistinct for avgfreq
- Fixing some ancient errors in hash join costing
- BUG #19363: PostgreSQL shared memory exhaustion during query execution involving views and parallel workers
- BUG #19345: MemoryContextSizeFailure after upgrade 14.11 to 17.7 in stored procedure
- Fix overflow of nbatch
- Re: DSA overflow in hash join
- BUG #19030: Hash join leads to extremely high memory usage
- BUG #18909: Query creates millions of temporary files and stalls
- Avoiding hash join batch explosions with extreme skew and weird stats
- Reference to - BUG #18349: ERROR: invalid DSA memory alloc request size 1811939328, CONTEXT: parallel worker
- BUG #18414: When the key values are the same, the memory limit is exceeded when making a hash join
- BUG #18349: ERROR: invalid DSA memory alloc request size 1811939328, CONTEXT: parallel worker
- [Bugg hash join and parallel worker]
- Memory leak from ExecutorState context?
- Bufferless buffered files
- OOM in hash join
- accounting for memory used for BufFile during hash joins
- Replace hashtable growEnable flag
- Avoiding OOM in a hash join with many duplicate inner keys