What changed
Railway added one-click PostgreSQL major-version upgrades on September 11, 2026. Eligible standalone databases and high-availability clusters using versioned official Railway images can now open Database → Config → Major Version Upgrade, review a compatibility report and choose a newer supported major. Railway takes a backup before the change, upgrades and redeploys the service, and creates another backup after it is serving again. The current flow supports upgrades from PostgreSQL 14 through 17 to any newer major Railway publishes. For HA clusters, Railway upgrades the primary and rebuilds replicas. A limited rollback window restores the pre-upgrade backup.
Why it matters
Major PostgreSQL upgrades are one of the maintenance jobs small teams often postpone because they combine application compatibility, database state, downtime and rollback planning. Railway is turning much of that choreography into a provider-managed flow. That lowers the operational barrier, but it does not remove migration risk: the database is unavailable during the upgrade, typically for a few minutes depending on data size, and reverting means restoring the pre-upgrade state, so every write made after the upgrade is lost. Teams still need application testing, a maintenance window and an explicit decision point before accepting post-upgrade traffic.
The workflow starts with a compatibility report
Railway exposes eligible target versions in the database configuration and runs a preflight compatibility check before confirmation. The report is meant to surface upgrade blockers before the service is taken offline, although teams still need to test application and extension behavior against the target PostgreSQL major.
Backups bracket the upgrade
Once confirmed, Railway creates a backup, performs the major-version upgrade and redeploys the service. A second backup is created after the upgraded database is serving again. This gives operators known recovery points around the migration rather than making backup choreography a separate manual task.
HA does not make the major upgrade zero-downtime
For high-availability clusters, Railway upgrades the primary and rebuilds replicas. The database is still unavailable during the upgrade; Railway says the interruption is typically a few minutes but varies with data size. HA therefore protects normal node failures but does not turn this major-version operation into a rolling no-downtime upgrade.
Rollback is deliberately destructive to new writes
The limited revert path restores the backup taken before the upgrade. Any writes accepted after the upgrade are therefore discarded if the team rolls back. That makes the first period after reopening traffic an important operational boundary: teams should validate quickly and understand what data they are willing to lose if a compatibility problem appears.