max query length is ignored for pg_stat_statements.

Description

User impact:
Extract table is not working for queries longer then 2048 and creating noise in logs about not being able to extract it.

Steps to reproduce:

  1. Add PostgreSQL with pg_stat_statements and set max-query-length to 5000

  2. Run query with length more then 2048 characters

  3. Check that tables are filled for this query

Actual result:
Error messages in logs. Tables are not extracted.

Expected result:
No error messages about parsing.
Tables should be present on UI.

Workaround:

Details (+screenshots, whole logs):

How to test

in description

How to document

.

Smart Checklist

hide

Activity

Show:

Nailya Kutlubaeva August 6, 2024 at 8:32 AM

Internal server error is returned while adding any Postgres service:
[ec2-user@ip-10-178-2-227 ~]$ pmm-admin add postgresql
Internal server error.
[ec2-user@ip-10-178-2-227 ~]$

Done

Details

Assignee

Nurlan Moldomurov

Reporter

Priority

Labels

Needs QA

Yes

Needs Doc

Yes

Planned Version/s

Fix versions

Story Points

Smart Checklist Progress

Lead time

18

In progress time

18

Smart Checklist

Created August 1, 2024 at 2:48 PM
Updated November 13, 2024 at 8:33 AM
Resolved August 27, 2024 at 10:34 AM
Loading...