pg_statements query size hardcoded to 2048
General
Escalation
General
Escalation
Description
How to test
None
How to document
None
AFFECTED CS IDs
CS0033929
Activity
Show:

Nurlan Moldomurov July 24, 2024 at 9:26 AM
PMM has flag --max-query-length which let’s user to set any value.
Not a Bug
Created February 16, 2023 at 10:35 AM
Updated October 9, 2024 at 8:38 AM
Resolved July 24, 2024 at 9:26 AM
Regardless of the value of
track_activity_query_size
the pg_statements truncates query up to 2048 characters: https://github.com/percona/pmm/blob/main/agent/agents/postgres/pgstatstatements/utils.go#L77.That value should be aligend with
Also; it causes a flood of warnings like:
for larger queries. Note that ... part comes from the truncate module.