diff options
author | Michael Paquier <michael@paquier.xyz> | 2024-11-01 17:05:36 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2024-11-01 17:05:36 +0900 |
commit | e819bbb7c82ac048ffd865ba3f2d2c4933923c77 (patch) | |
tree | 5ce97d23cf75d62d7779f6efd0dc9ec04a2bba24 /src/backend/access/transam/xlogwait.c | |
parent | 07e9e28b56db4d8533b62b3a921f1e74aae26b1f (diff) | |
download | postgresql-e819bbb7c82ac048ffd865ba3f2d2c4933923c77.tar.gz postgresql-e819bbb7c82ac048ffd865ba3f2d2c4933923c77.zip |
Remove use of pg_memory_is_all_zeros() in bufpage.c
After a closer lookup, this makes the all-zero check of the page more
expensive, so let's remove the new function call in bufpage.c. The
maths of the check were also incorrect, checking that the page was full
of zeros only for the first 1kB.
This brings back the code to the state it was at 49d6c7d8daba.
Per discussion with David Rowley and Bertrand Drouvot.
Discussion: https://postgr.es/m/CAApHDvrXzPAr3FxoBuB7b3D-okNoNA2jxLun1rW8Yw5wkbqusw@mail.gmail.com
Diffstat (limited to 'src/backend/access/transam/xlogwait.c')
0 files changed, 0 insertions, 0 deletions