Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pg:upgrade --version argument is either broken or the docs are wrong #1988

Open
salomvary opened this issue Apr 22, 2022 · 0 comments
Open

Comments

@salomvary
Copy link

Do you want to request a feature or report a bug?

Documentation/help bug, or a bug in the --version argument of pg:upgrade.

What is the current behavior?

The help for heroku:upgrade is the following:

$ heroku pg:upgrade --help
unfollow a database and upgrade it to the latest stable PostgreSQL version

USAGE
  $ heroku pg:upgrade [DATABASE]

OPTIONS
  -a, --app=app          (required) app to run command against
  -c, --confirm=confirm
  -r, --remote=remote    git remote of app to use
  -v, --version=version  PostgreSQL version to upgrade to

DESCRIPTION
  to upgrade to another PostgreSQL version, use pg:copy instead

At the time of writing, the latest stable Postgres on Heroku is 14, the default one is 13: https://devcenter.heroku.com/articles/heroku-postgresql#version-support

I've used heroku pg:upgrade without the --version argument to upgrade an instance from 12 to 14. Instead of to 14, it was upgraded to 13.

Now the actual behavior without --version seems to be either to the next major version or to the default version.

What is the expected behavior?

The documentation should be aligned with the behavior.

Ps. "to upgrade to another PostgreSQL version, use pg:copy instead" seems to be wrong. Depending on what "another" means here, pg:upgrade is capable of upgrading to "another" versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant