Thread

  1. Re: Vacuum statistics

    Ilia Evdokimov <ilya.evdokimov@tantorlabs.com> — 2025-09-15T20:46:04Z

    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