Re: Vacuum statistics
Ilia Evdokimov <ilya.evdokimov@tantorlabs.com>
From: Ilia Evdokimov <ilya.evdokimov@tantorlabs.com>
To: Alena Rybakina <a.rybakina@postgrespro.ru>,
pgsql-hackers <pgsql-hackers@postgresql.org>
Cc: Alexander Korotkov <aekorotkov@gmail.com>,
Amit Kapila <amit.kapila16@gmail.com>, Jim Nasby <jnasby@upgrade.com>,
Bertrand Drouvot <bertranddrouvot.pg@gmail.com>,
Kirill Reshke <reshkekirill@gmail.com>, Andrei Zubkov <zubkov@moonset.ru>,
Masahiko Sawada <sawada.mshk@gmail.com>,
Melanie Plageman <melanieplageman@gmail.com>,
jian he <jian.universality@gmail.com>, a.lepikhov@postgrespro.ru,
Sami Imseih <samimseih@gmail.com>, vignesh C <vignesh21@gmail.com>
Date: 2025-09-15T20:46:04Z
Lists: pgsql-hackers
Hi Alena, Thanks for the work you’ve done. On 01.09.2025 22:13, Alena Rybakina wrote: > I've rebased the patches to the current HEAD. Right now there is a bug: when I run a simple SELECT * FROM pg_stat_vacuum_database; psql crashes. The root cause is an incorrect zeroing of a local variable: PgStat_VacuumDBCounts allzero; - memset(&allzero, 0, sizeof(PgStat_VacuumRelationCounts)); + memset(&allzero, 0, sizeof(PgStat_VacuumDBCounts)); -- Best regards, Ilia Evdokimov, Tantor Labs LLC, https://tantorlabs.com