• Heikki Linnakangas's avatar
    Fix integer overflow bug in GiST buffering build calculations. · 4bc6fb57
    Heikki Linnakangas authored
    The result of (maintenance_work_mem * 1024) / BLCKSZ doesn't fit in a signed
    32-bit integer, if maintenance_work_mem >= 2GB. Use double instead. And
    while we're at it, write the calculations in an easier to understand form,
    with the intermediary steps written out and commented.
    4bc6fb57
gistbuild.c 32.2 KB