Get prewarm extension status
get_prewarm_extension_statusReport whether pg_prewarm and pg_buffercache are installed and if autoprewarm is enabled in shared_preload_libraries, so you can verify prerequisites before warming the buffer cache.
Instructions
Report whether pg_prewarm (and the supporting pg_buffercache) are installed, and whether pg_prewarm is listed in shared_preload_libraries (the autoprewarm worker requires it). Returns an object with pg_prewarm_installed (bool), pg_buffercache_installed (bool), autoprewarm_libraries_present (bool), and shared_preload_libraries (the raw setting).
Example: get_prewarm_extension_status()
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_prewarm_extension_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | No | Optional: a database id from list_databases, to target a configured secondary (read-only) database; omit for the primary. Database names that are not configured ids are rejected. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pg_prewarm_installed | Yes | ||
| pg_buffercache_installed | Yes | ||
| shared_preload_libraries | Yes | ||
| autoprewarm_libraries_present | Yes |