PostgreSQL index advisor
github.com · Open source · Active
Postgres extension that suggests indexes for SQL queries
- Data & databases
- Open source
- PLpgSQL
- Day-7 check
- Day-30 check
- postgres
- indexes
- query tuning
- extension
- indexing
- postgresql
- postgres index advisor
- missing index finder
- query optimization postgres
- hypopg
- Stars
- 1.7k
- Forks
- 24
- Open issues
- 4
- Last commit
- Releases
- 2
- Found
- 2 years ago
GitHub figures as of . They are context, not a ranking.
index_advisor is a PostgreSQL extension that checks a query and reports which index would help it, using the HypoPG extension to test candidate indexes without building them. It works well alongside pg_stat_statements, which tracks execution statistics across the database.
Repository description on GitHub: “PostgreSQL Index Advisor”
What it does
- Suggests CREATE INDEX statements that could speed up a SQL query
- Tests candidate indexes with HypoPG without building them
- Supports generic parameters, materialized views and views
Good for
- Check whether a slow query would benefit from a new index
- Pair index suggestions with pg_stat_statements for slow queries
Suits: Database engineers tuning PostgreSQL query performance.
Worth knowing: Needs PostgreSQL 13 or later, according to the readme badge
What you can try
Read the README on GitHub and install from source.
Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.
Found vs. released
Kip first saw PostgreSQL index advisor on , when kiwicopple posted it to Show HN. The oldest published release on GitHub is v0.2.0, dated . PostgreSQL index advisor had been shipping tagged releases for 10 days before it was found. 2 releases have been published in total; the latest is v0.2.1 ().
Day-7 and day-30 updates
Day 7 no new release
- No tagged release was published in the first 7 days after it was found (GitHub release dates).
- Show HN discussion at check time: 417 points, 97 comments. API record
Checked , later than day 7 because tracking began after.
Day 30 no new release
- No tagged release was published in the first 30 days after it was found (GitHub release dates).
- Show HN discussion at check time: 417 points, 97 comments. API record
Checked , later than day 30 because tracking began after.
Release timeline every entry links to its source
- Repository created on GitHub: supabase/index_advisor
- Release v0.2.0
- Found: kiwicopple posted it to Show HN. Show HN
- Release v0.2.1
- Day-7 check recorded by Kip (details)
- Day-30 check recorded by Kip (details)
Quick answers
- When was PostgreSQL index advisor released?
- Its first tagged release on GitHub is dated 3 Apr 2024. Kip found it on Show HN on 14 Apr 2024.
- Is PostgreSQL index advisor open source?
- Its source is public on GitHub at supabase/index_advisor under the PostgreSQL licence.
- Is PostgreSQL index advisor free?
- It is open source, so the code is free to read and run; check the licence for terms.
- Is PostgreSQL index advisor still maintained?
- Yes. It had a commit or release in the last 90 days as of the latest check.
Provenance
| Source | Record | Last checked |
|---|---|---|
| Show HN | listing official API record | |
| GitHub repository | supabase/index_advisor REST API record | |
| GitHub Releases | release list REST API record |
Stable ID hn-40028111. Summary drafted with AI from the source records above and checked against KipFound’s rules before publishing. Dates and release facts come only from those records.
Share
Similar tools
Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.