Skip to content

Instantly share code, notes, and snippets.

@ivanelson
Created February 7, 2019 20:13
Show Gist options
  • Save ivanelson/3012d07d004bc3fd4c0bea1d74e42344 to your computer and use it in GitHub Desktop.
Save ivanelson/3012d07d004bc3fd4c0bea1d74e42344 to your computer and use it in GitHub Desktop.
run pg_upgrade
/usr/lib/postgresql/11/bin/pg_upgrade -U postgres --old-datadir "/opt/PostgreSQL/9.6/data" --new-datadir "/var/lib/postgresql/11/main" --old-bindir "/opt/PostgreSQL/9.6/bin" --new-bindir "/usr/lib/postgresql/11/bin"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment