List connections and queries on a branch

connect & shell

// what it does

Snapshots current connections with their query_id, connection_id, and (on Postgres) transaction_id — the IDs you need before killing anything. --format json makes it scriptable for automated guardrails.

// shell

$ pscale branch connections show mydb main --format json

// gotcha

Grab the ID and act quickly: IDs describe a moment in time, and killing a connection_id that has since been recycled hits the wrong session. Re-run show right before any kill.

// resources