---
title: "Heroku Postgres Upgrade Guide: Simplify Your Move to Version 17"
description: "Postgres 17 is now available on Heroku Postgres, along with five new `heroku pg:upgrade:*` CLI subcommands (prepare, run, cancel, dryrun, wait) that expose Heroku's internal upgrade automation for self-service major-version upgrades."
url: "https://swe.quest/articles/heroku-postgres-upgrade-guide-simplify-your-move-to-version-17-1677ccc4fe1d5c64"
canonical: "https://www.heroku.com/blog/heroku-postgres-upgrade-guide-simplify-move-version-17/"
source: "Heroku Engineering"
published: "2025-05-29"
difficulty: "medium"
kind: "How-to"
reading_minutes: 7
tags: ["postgres","schema-migrations","cloud"]
---

# Heroku Postgres Upgrade Guide: Simplify Your Move to Version 17

A post on [Heroku Engineering](https://swe.quest/sources/heroku.md), published 2025-05-29, 7 min read, How-to. Original: [https://www.heroku.com/blog/heroku-postgres-upgrade-guide-simplify-move-version-17/](https://www.heroku.com/blog/heroku-postgres-upgrade-guide-simplify-move-version-17/)

## Summary

Postgres 17 is now available on Heroku Postgres, along with five new \`heroku pg:upgrade:\*\` CLI subcommands (prepare, run, cancel, dryrun, wait) that expose Heroku's internal upgrade automation for self-service major-version upgrades. Essential-tier databases upgrade with a single \`pg:upgrade:run\`. Standard-tier and higher databases can do an optional dry run on a follower, then schedule the upgrade for the next maintenance window or trigger it manually. The upgrade runs in place via an internal replica, takes about 5-10 minutes of downtime, upgrades followers automatically and keeps \`DATABASE\_URL\` unchanged. The legacy \`pg:upgrade\` command is being deprecated, though the follower-based flow remains available for teams that want easier rollback.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [Schema migrations](https://swe.quest/tags/schema-migrations.md) (Data & databases)
- [Cloud platforms](https://swe.quest/tags/cloud.md) (Infrastructure)

## Prerequisites

- PostgreSQL major version upgrades ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- Heroku CLI ([easy posts on Developer tools](https://swe.quest/tags/developer-tools.md?difficulty=easy))

## Keywords

Heroku Postgres, PostgreSQL 17, pg:upgrade, Heroku CLI

## Related posts

- [Why Does Everyone Run Ancient Postgres Versions?](https://swe.quest/articles/why-does-everyone-run-ancient-postgres-versions-8bb6077a57ed6225.md): Neon · 2024-10-16 · Easy · 6 min read · PostgreSQL, Schema migrations, Databases
  Many teams stay on old Postgres major versions because older releases already meet most needs and major upgrades are costly: they can break backward compatibility and usually require logical replication, incremental table migration, testing and a planned cutover.
- [How we migrate TBs from Heroku without logical replication](https://swe.quest/articles/how-we-migrate-tbs-from-heroku-without-logical-replication-e0568c616a878849.md): PlanetScale · 2026-11-11 · Medium · 12 min read · PostgreSQL, Schema migrations, Replication, Networking
  PlanetScale's open-source Heroku Migrator moves multi-terabyte Postgres databases off Heroku standard plans, which lack WAL access and logical replication, by using Bucardo trigger-based replication: triggers record changes in delta tables, a one-time COPY loads existing data, and a worker replays the backlog before a controlled switchover with verification.
- [Postgres 17 is Now Available on Neon](https://swe.quest/articles/postgres-17-is-now-available-on-neon-84c88d00e9905bce.md): Neon · 2024-09-26 · Medium · 6 min read · PostgreSQL, SQL
  Postgres 17 is available on Neon for all plans, including Free, and can be provisioned in a few steps.
- [How To Set Up a Staging Environment on Heroku in 3 Easy Steps](https://swe.quest/articles/how-to-set-up-a-staging-environment-on-heroku-in-3-easy-steps-5198bdb0f631816e.md): Heroku Engineering · 2026-07-16 · Medium · 7 min read · Deployment, CI/CD, Cloud platforms, PostgreSQL
  Heroku pipelines let you put a staging app in front of production: disable auto-deploy on production, create a pipeline with a new staging app auto-deploying from GitHub, and optionally enable Review Apps per pull request.
- [Introducing Neon Labs](https://swe.quest/articles/introducing-neon-labs-91c029a8271e5821.md): Neon · 2026-08-26 · Medium · 6 min read · PostgreSQL, Schema migrations, Replication, Developer tools
  Neon Labs launches with two experimental tools for major Postgres version upgrades on Neon, where pg\_upgrade isn't supported and an upgrade means migrating into a new project.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
