Fix a calculation in TidStoreCreate().
authorMasahiko Sawada <[email protected]>
Tue, 26 Mar 2024 04:06:06 +0000 (13:06 +0900)
committerMasahiko Sawada <[email protected]>
Tue, 26 Mar 2024 04:06:06 +0000 (13:06 +0900)
commit4edb37e322a64b1c9edd7f0da6fa7cda4541a67c
tree2a793217b6e994cb6bc289c50ebedeb03c771771
parent3a4837fc809a8656374959049f3ac7a09a711334
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
src/backend/access/common/tidstore.c