test_connection
Checks PostgreSQL connectivity and psql setup for one or all databases, reporting psql path, server version, connected user, and database mode; omitting database validates the entire configuration.
Instructions
Check psql and connectivity, for one database or all of them.
Reports the path to the psql binary, the server version, the connected
user, and each database's configured read-only or read-write mode. Omit
database to check every configured entry, which also validates the
config file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |