Skip to content

Commit 18edf62

Browse files
authored
Correct extension name from pg_statements to pg_stat_statements (#115)
1 parent 7179ab0 commit 18edf62

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -258,26 +258,26 @@ For Windsurf, the format in `mcp_config.json` is slightly different:
258258

259259
## Postgres Extension Installation (Optional)
260260

261-
To enable index tuning and comprehensive performance analysis you need to load the `pg_statements` and `hypopg` extensions on your database.
261+
To enable index tuning and comprehensive performance analysis you need to load the `pg_stat_statements` and `hypopg` extensions on your database.
262262

263-
- The `pg_statements` extension allows Postgres MCP Pro to analyze query execution statistics.
263+
- The `pg_stat_statements` extension allows Postgres MCP Pro to analyze query execution statistics.
264264
For example, this allows it to understand which queries are running slow or consuming significant resources.
265265
- The `hypopg` extension allows Postgres MCP Pro to simulate the behavior of the Postgres query planner after adding indexes.
266266

267267
### Installing extensions on AWS RDS, Azure SQL, or Google Cloud SQL
268268

269-
If your Postgres database is running on a cloud provider managed service, the `pg_statements` and `hypopg` extensions should already be available on the system.
269+
If your Postgres database is running on a cloud provider managed service, the `pg_stat_statements` and `hypopg` extensions should already be available on the system.
270270
In this case, you can just run `CREATE EXTENSION` commands using a role with sufficient privileges:
271271

272272
```sql
273-
CREATE EXTENSION IF NOT EXISTS pg_statements;
273+
CREATE EXTENSION IF NOT EXISTS pg_stat_statements;
274274
CREATE EXTENSION IF NOT EXISTS hypopg;
275275
```
276276

277277
### Installing extensions on self-managed Postgres
278278

279279
If you are managing your own Postgres installation, you may need to do additional work.
280-
Before loading the `pg_statements` extension you must ensure that it is listed in the `shared_preload_libraries` in the Postgres configuration file.
280+
Before loading the `pg_stat_statements` extension you must ensure that it is listed in the `shared_preload_libraries` in the Postgres configuration file.
281281
The `hypopg` extension may also require additional system-level installation (e.g., via your package manager) because it does not always ship with Postgres.
282282

283283
## Usage Examples

0 commit comments

Comments
 (0)