postgresql/src
Michael Paquier f04d1c1db0 Improve assertion in mdwritev()
The assertion used at the beginning of mdwritev(), that is not enabled
except by defining -DCHECK_WRITE_VS_EXTEND as mdnblocks() is costly,
forgot about the total number of blocks to write at location specified
by the caller.  The calculation is fixed to count for that, and uses
casts to uint64 to ensure a proper check should the number of blocks
overflow.

Using a cast is a suggestion from Tom Lane.

Oversight in 4908c58720.

Author: Xing Guo
Discussion: https://postgr.es/m/CACpMh+BM-VgKeO7suPG-VHTtpzJ+zsbDPwVHu42PLp-iTk0z+A@mail.gmail.com
2024-06-04 07:15:10 +09:00
..
backend Improve assertion in mdwritev() 2024-06-04 07:15:10 +09:00
bin Translation updates 2024-05-20 12:04:11 +02:00
common jsonapi: Some message style fixes 2024-05-23 09:22:28 +02:00
fe_utils Revise GUC names quoting in messages again 2024-05-17 11:44:26 +02:00
include Fix a couple of outdated comments now that we have MERGE RETURNING 2024-05-23 15:24:54 +12:00
interfaces Fix check for memory allocation 2024-05-27 19:37:17 +02:00
makefiles
pl Fix handling of polymorphic output arguments for procedures. 2024-05-14 20:19:20 -04:00
port Pre-beta mechanical code beautification. 2024-05-14 16:34:50 -04:00
template
test Provide deterministic order for catalog queries in partition_split.sql 2024-05-26 06:41:56 +03:00
timezone
tools amcheck: Refactoring the storage of the last visible entry 2024-05-23 02:11:14 +03:00
tutorial
.gitignore
DEVELOPERS
Makefile
Makefile.global.in Update Unicode data to CLDR 45 2024-04-22 09:16:33 +02:00
Makefile.shlib
meson.build
nls-global.mk