Skip to content

feat(db): enable pg_stat_statements for query diagnostics - #59

Merged
cchwala merged 1 commit into
mainfrom
feat/db-add-pg-stat-statements
Jul 16, 2026
Merged

feat(db): enable pg_stat_statements for query diagnostics#59
cchwala merged 1 commit into
mainfrom
feat/db-add-pg-stat-statements

Conversation

@cchwala

@cchwala cchwala commented Jul 16, 2026

Copy link
Copy Markdown
Member

Add pg_stat_statements to shared_preload_libraries alongside timescaledb, and set pg_stat_statements.track=all. This allows tracking cumulative query statistics across sessions, enabling identification of slow queries.

After restarting the database container, activate the extension with:
CREATE EXTENSION IF NOT EXISTS pg_stat_statements;

Add pg_stat_statements to shared_preload_libraries alongside timescaledb,
and set pg_stat_statements.track=all. This allows tracking cumulative
query statistics across sessions, enabling identification of slow queries.

After restarting the database container, activate the extension with:
  CREATE EXTENSION IF NOT EXISTS pg_stat_statements;
@codecov

codecov Bot commented Jul 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.59%. Comparing base (0a7592b) to head (825c58a).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #59      +/-   ##
==========================================
+ Coverage   86.10%   87.59%   +1.48%     
==========================================
  Files          39       35       -4     
  Lines        3418     3038     -380     
==========================================
- Hits         2943     2661     -282     
+ Misses        475      377      -98     
Flag Coverage Δ
mno_simulator 86.12% <ø> (ø)
parser 92.00% <ø> (ø)
scripts ?
webserver 73.78% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cchwala
cchwala merged commit 878224d into main Jul 16, 2026
7 checks passed
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.

1 participant