What changed
Railway added first-class Postgres operations to its CLI on September 4, 2026. New commands cover HA conversion and health, node scaling and primary switchover, point-in-time recovery status and restore operations, backup scheduling, and PgBouncer configuration. Commands support project/environment/service targeting and JSON output, making the same controls usable by scripts and agents rather than only through the web dashboard. A PITR restore creates a separate service and preserves the original source database; an HA switchover can briefly interrupt active connections.
Why it matters
Database recovery controls are unusually consequential automation primitives. Exposing them through a CLI means infrastructure agents, runbooks and CI/operations systems can inspect and act on database state without browser automation. That can shorten recovery workflows and make configuration reproducible, but it also raises the bar for permissions, confirmation and idempotency: a machine can now trigger operations that move primaries or fork production state.
HA operations are now scriptable
Railway's Postgres CLI can inspect HA status, convert eligible deployments, manage nodes and switch the writable primary. Applications still need reconnection handling because a switchover can produce a short interruption.
PITR restores fork rather than overwrite the source
Operators can enable, inspect and restore point-in-time recovery from the CLI. Railway's current recovery model creates a new service from the selected point, preserving the source database instead of destructively rewinding it in place.
Pooling joins the same control surface
PgBouncer configuration can also be managed through the CLI. That makes connection pooling part of the same automation path as recovery and availability rather than a separate dashboard-only task.
JSON output makes the feature agent-friendly
Machine-readable output and explicit project/environment/service selection make it practical to build checks and recovery workflows around the CLI. Teams should still put destructive or topology-changing actions behind scoped credentials and human approval where appropriate.