]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Add dead items memory usage to VACUUM (VERBOSE) and autovacuum logs.
authorMasahiko Sawada <msawada@postgresql.org>
Tue, 30 Dec 2025 21:12:10 +0000 (13:12 -0800)
committerMasahiko Sawada <msawada@postgresql.org>
Tue, 30 Dec 2025 21:12:10 +0000 (13:12 -0800)
commit736f754eed01ca81198b6cd7421321088cbe5ded
tree02232423700a5781f034053f24d28c85c59e2925
parent2a5225b99d7659b4e641f5397ca9e7ad625e6726
Add dead items memory usage to VACUUM (VERBOSE) and autovacuum logs.

This commit adds the total memory allocated during vacuum, the number
of times the dead items storage was reset, and the configured memory
limit. This helps users understand how much memory VACUUM required,
and such information can be used to avoid multiple index scans.

Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/CAHza6qcPitBCkyiKJosDTt3bmxMvzZOTONoebwCkBZrr3rk65Q%40mail.gmail.com
src/backend/access/heap/vacuumlazy.c