Repository navigation
GH-1: Add hypopg and load pg_stat_statements at startup - #4
Merged
Merged
Conversation
- Install postgresql-18-hypopg, for hypothetical indexes - Load pg_stat_statements at startup (shared_preload_libraries), so a database can create it and query its statistics - Check both in the publish workflow: a hypothetical index, and a query on pg_stat_statements, which fails unless it's preloaded - List both in the README, with the note for projects that set their own shared_preload_libraries Refs: Dockerfile, .github/workflows/publish.yml, README.md Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Closes #1
Changes
Features
Testing
hypopg_create_indexreturned a hypothetical index, andpg_stat_statementsanswered a query.analyze_query_indexesrecommended a btree index for a test query (estimated cost 4228 → 8.1);get_top_querieslisted queries frompg_stat_statements.Note for projects using the image: one that sets its own
commandorshared_preload_librariesreplaces the new default and needspg_stat_statementsin its own list.🤖 Generated with Claude Code