]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix valgrind failure
authorÁlvaro Herrera <alvherre@kurilemu.de>
Tue, 7 Apr 2026 09:13:16 +0000 (11:13 +0200)
committerÁlvaro Herrera <alvherre@kurilemu.de>
Tue, 7 Apr 2026 09:13:50 +0000 (11:13 +0200)
commit5bcc3fbd196ccbec55c2ce6b58d6946f06cf6213
treeaf01162ea9ac5732f5dca5fd01a3a5bd904d5fde
parent8c3e22a8f8b9af94b519b6e223db0912d552093e
Fix valgrind failure

Buildfarm member skink reports that the new REPACK code is trying to
write uninitialized bytes to disk, which correspond to padding space in
the SerializedSnapshotData struct.  Silence that by initializing the
memory in SerializeSnapshot() to all zeroes.

Co-authored-by: Srinath Reddy Sadipiralla <srinath2133@gmail.com>
Co-authored-by: Álvaro Herrera <alvherre@kurilemu.de>
Discussion: https://postgr.es/m/1976915.1775537087@sss.pgh.pa.us
src/backend/commands/repack_worker.c
src/backend/utils/time/snapmgr.c