pg_copy_between_databases
Copy data between two PostgreSQL databases by specifying source and target connection strings and table name. Supports conditional filtering and target table truncation options.
Instructions
Copy data between two databases
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sourceConnectionString": "<sourceConnectionString>",
"targetConnectionString": "<targetConnectionString>",
"tableName": "<tableName>"
},
"name": "pg_copy_between_databases"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sourceConnectionString | Yes | ||
| targetConnectionString | Yes | ||
| tableName | Yes | ||
| where | No | ||
| truncateTarget | No |