Hi team,
Following up on this earlier thread: No query examples in PMM QAN with pg_stat_monitor normalized queries enabled
We’re on PMM 3.8.1 monitoring PostgreSQL with pg_stat_monitor, and confirmed the same behavior: with pgsm_normalized_query = on, QAN’s Examples tab shows “Sorry, no examples found for this query” since the normalized query column only stores placeholders ($1, $2) and never the literal values.
This is tracked as PMM-13195, but we need to decide our config going forward, so a few questions:
- What’s Percona’s actual recommendation — should we run with
pgsm_normalized_query = onoroffin production? The install docs recommendonbut that silently disables Examples, which seems like an important trade-off to flag. - If we turn it
offto get Examples back, are there known downsides beyond the Table/Plan behavior mentioned in the earlier thread — e.g. performance overhead of storing literal query text, memory/storage growth inpg_stat_monitor’s shared buffer, or security/PII exposure from capturing literal values? - Is there a way to get both — normalized aggregation and example queries — short of waiting on pg_stat_monitor PR #350 (the stalled
bind_variablescolumn)? - Any ETA or plan for PMM-13195, and would it help if we added our environment details/+1 to that ticket?
Environment:
- PMM: 3.8.1
- Database: PostgreSQL 17 version
- Extension: pg_stat_monitor (via
shared_preload_libraries) - Current:
pgsm_normalized_query = on
Would really appreciate guidance on which setting to run with, since Examples are important for us to debug slow queries but we don’t want to break aggregation or hit hidden costs. Thanks!