Skip to content

Add slow query parse logging#972

Open
frodsan wants to merge 1 commit into
pgdogdev:mainfrom
frodsan:log-slow-query-parsing
Open

Add slow query parse logging#972
frodsan wants to merge 1 commit into
pgdogdev:mainfrom
frodsan:log-slow-query-parsing

Conversation

@frodsan
Copy link
Copy Markdown

@frodsan frodsan commented May 11, 2026

  • Adds log_min_duration_parse (ms) config option: when set, emits a WARN log for any query whose parse time meets or exceeds the threshold.
  • Adds log_query_sample_length (default: 100) to cap how many characters of the query are included in the log line, keeping logs readable for long queries.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 11, 2026

CLA assistant check
All committers have signed the CLA.

@frodsan frodsan marked this pull request as ready for review May 11, 2026 13:11
@codecov
Copy link
Copy Markdown

codecov Bot commented May 11, 2026

Codecov Report

❌ Patch coverage is 84.09091% with 7 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
pgdog/src/frontend/router/parser/cache/ast.rs 30.00% 7 Missing ⚠️

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants