Skip to content

fix(localmode): sync embedded compose with pg_stat_statements from source#30

Open
tkkhq wants to merge 1 commit into
mainfrom
fix/localmode-sync-pg-stat-statements
Open

fix(localmode): sync embedded compose with pg_stat_statements from source#30
tkkhq wants to merge 1 commit into
mainfrom
fix/localmode-sync-pg-stat-statements

Conversation

@tkkhq

@tkkhq tkkhq commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Regenerates the embedded local-mode Compose asset from the current hosting source. The only change is the postgres command enabling pg_stat_statements, added upstream for query observability. ANON passthrough, durations (REDIS_TIMEOUT: "60s"), and the server-owned-secret invariant are all unchanged.

This supersedes #27, which predated #24: #24 already landed the duration fix and relaxed the ANON_KEY_SECRET invariant on main. The sole remaining drift between main's asset and hosting source was this one line.

Diff

+    command: ["postgres", "-c", "shared_preload_libraries=pg_stat_statements"]

Tests

go test ./internal/localmode/ — 43 passed.

Copilot AI review requested due to automatic review settings July 4, 2026 17:16
@tkkhq tkkhq requested a review from a team as a code owner July 4, 2026 17:16

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the embedded local-mode Docker Compose template to match the current hosting source by enabling PostgreSQL’s pg_stat_statements via shared_preload_libraries, improving query observability in local mode.

Changes:

  • Add an explicit postgres service command to preload pg_stat_statements.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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