Logical Tape Set: use min heap for freelist.
Jeff Davis <jdavis@postgresql.org>
Logical Tape Set: use min heap for freelist. Previously, the freelist of blocks was tracked as an occasionally-sorted array. A min heap is more resilient to larger freelists or more frequent changes between reading and writing. Discussion: https://postgr.es/m/97c46a59c27f3c38e486ca170fcbc618d97ab049.camel%40j-davis.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/sort/logtape.c | modified | +104 −56 |
Discussion
- Memory-Bounded Hash Aggregation 81 messages · 2019-07-01 → 2020-03-28