switch_server_db
Switches the active PostgreSQL server and database connection. Required before executing queries; specify server from list_servers and optionally select database and schema.
Instructions
Connect to a PostgreSQL server and database. MUST be called before executing queries. Use list_servers to find server names, list_databases to find database names.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server | Yes | Server name from list_servers (NOT the host) | |
| database | No | Database name from list_databases (defaults to server's default or 'postgres') | |
| schema | No | Schema name (defaults to 'public') |