summaryrefslogtreecommitdiff
path: root/src/tutorial/basics.source
diff options
context:
space:
mode:
authorThomas Munro <tmunro@postgresql.org>2019-12-24 11:31:24 +1300
committerThomas Munro <tmunro@postgresql.org>2019-12-24 13:13:13 +1300
commit893eaf0be8be32f1d6ee364d5d9e2dae0d87ebfd (patch)
treeb69b63fe5b99aa8295e8367259563a32ade97ae7 /src/tutorial/basics.source
parent70fc6c4ef3c3790284796db3935d6f2d040b60bd (diff)
Rotate instead of shifting hash join batch number.
Our algorithm for choosing batch numbers turned out not to work effectively for multi-billion key inner relations. We would use more hash bits than we have, and effectively concentrate all tuples into a smaller number of batches than we intended. While ideally we should switch to wider hashes, for now, change the algorithm to one that effectively gives up bits from the bucket number when we don't have enough bits. That means we'll finish up with longer bucket chains than would be ideal, but that's better than having batches that don't fit in work_mem and can't be divided. Batch-patch to all supported releases. Author: Thomas Munro Reviewed-by: Tom Lane, thanks also to Tomas Vondra, Alvaro Herrera, Andres Freund for testing and discussion Reported-by: James Coleman Discussion: https://postgr.es/m/16104-dc11ed911f1ab9df%40postgresql.org
Diffstat (limited to 'src/tutorial/basics.source')
0 files changed, 0 insertions, 0 deletions