#30939·yugabyte-db

QPM does not work after truncating the qpm.stat file

Author: yugabyte-ciCreated Apr 2, 2026Updated Sep 29, 2026
Labelskind/enhancementpriority/highjira-originated

Jira Link: DB-20837 If you corrupt the file, truncate it maybe then the next time it gives


dbb=# SELECT yb_pg_stat_plans_read_file();
WARNING:  1 temporary files and directories not closed at end-of-transaction
 yb_pg_stat_plans_read_file 
----------------------------
                         -1
(1 row)

After that no matter how many queries I perform you will always get -

yugabyte=# SELECT yb_pg_stat_plans_read_file();
ERROR:  entry should not be present