I’m currently facing a rather confusing situation.
Issue:
While reviewing the Query Analytics (QAN) in PMM3 (and also in PMM 2.x), we noticed that when selecting a specific time range, some queries are being displayed that we are confident did not run during that selected timeframe.
In the screenshot below, we selected a 5-minute window to view the queries executed during that time. However, the marked DELETE queries appear in the list — even though we are certain these queries only run during our scheduled maintenance window around 6:30 PM.
Environment details -
PMM version : 3.1.0 (Same issue with older 2.4xx as well. That’s why we upgraded)
Postgres version -PostgreSQL 16.6
pg_stat_statement : 1.10
We use pg_stat_statement and database servers has PMM client installed. PMM client version - 3.1.0.
Also, one more question - What is load here? as i do not find clear info about it. Does it mean that the query was executed and caused that load?
We would appreciate any insights or guidance on why these queries are showing up outside of their actual execution window.
Hello @aniruddha.deshpande,
I’ll let a PMM dev chime in about the query window issue, and I’ll explain that “Load” is simply “Query Count” x “Query Time”. Take your first query as example: 9.6 queries per second * 48.0 sec avg exec time = 460.8 load.
If I understand you correctly, then yes — we have already verified this through pg_stat_statements by sampling at 1-minute intervals. During the specified time window, these queries were not executed. We also monitored over an extended period and confirmed that these queries were not executed during that time either.