index_advisor
Query index advisor
Repository
supabase/index_advisor
https://github.com/supabase/index_advisor
Source
index_advisor-0.2.0.tar.gz
index_advisor-0.2.0.tar.gz
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
index_advisor | 0.2.0 | FEAT | PostgreSQL | SQL |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 2800 | index_advisor | No | No | No | Yes | No | Yes | - |
| Related | hypopg hypopg online_advisor pg_qualstats pg_hint_plan pg_stat_plans plan_filter pg_track_optimizer pg_strom pg_orca pg_relusage |
|---|
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 0.2.0 | 1817161514 | index_advisor | hypopg |
| RPM | PIGSTY | 0.2.0 | 1817161514 | index_advisor_$v | - |
| DEB | PIGSTY | 0.2.0 | 1817161514 | postgresql-$v-index-advisor | - |
Build
You can build the RPM / DEB packages for index_advisor using pig build:
Install
You can install index_advisor directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Install
pig
dnf
apt
Create Extension:
Usage
index_advisor analyzes a SQL query and recommends indexes that would improve its execution time, reporting before/after cost estimates and the DDL statements to create the suggested indexes.
Function
Basic Example
Returns cost improvements and the recommended CREATE INDEX statement.
Multi-Table Example
The output includes multiple index recommendations across the joined tables with before/after cost comparisons.
Features
- Supports parameterized queries using
$1,$2syntax - Handles materialized views
- Resolves underlying tables and columns behind views
- Depends on HypoPG for hypothetical index evaluation
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)