On 2025-Oct-21, Michael Paquier wrote: > The existing implementation is a choice of simplicity, prioritizing > availability, FWIW, to keep the contents of the on-disk file simpler.
FWIW I don't necessarily agree with what Sami is proposing, but (if I understand the situation correctly) I think throwing away the whole contents of stats when a module is removed is the opposite of availability, as it will lead to autovacuum lacking data and thus bloat problems. This is of course always problematic after a crash (unless somebody has fixed this already?) but at least it is supposed to be a known issue. With these custom stat kind thingies, nobody knows that this problem exists. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "Por suerte hoy explotó el califont porque si no me habría muerto de aburrido" (Papelucho)
