Fix a calculation in TidStoreCreate().

Masahiko Sawada <msawada@postgresql.org>

Commit: 4edb37e322a64b1c9edd7f0da6fa7cda4541a67c
Author: Masahiko Sawada <msawada@postgresql.org>
Date: 2024-03-26T04:06:06Z
Releases: 17.0
Fix a calculation in TidStoreCreate().

Since we expect that the max_bytes is in bytes, not in kilobytes, it
should not be multiplied by 1024.

Introduced by 30e144287a.

Reported-by: John Naylor, David Rowley
Reviewed-by: John Naylor
Discussion: https://postgr.es/m/CANWCAZZTE-14ofsucofTuhFsfuDGBNf%3DNZb22TMYT8bxA41oQQ%40mail.gmail.com
Discussion: https://postgr.es/m/CAApHDvojg82NDaDEpj1WEZSbVTafj%3DDRmW%2BFrkBdW8ScL4OFxA%40mail.gmail.com

Files

PathChange+/−
src/backend/access/common/tidstore.c modified +1 −1

Discussion

Cited messages not in the archive: CAApHDvojg82NDaDEpj1WEZSbVTafj=DRmW+FrkBdW8ScL4OFxA@mail.gmail.com