Skip to content

Instantly share code, notes, and snippets.

@wader
Created February 28, 2021 21:39
Show Gist options
  • Save wader/f109a3fee8d5731935e5bddde2abdd40 to your computer and use it in GitHub Desktop.
Save wader/f109a3fee8d5731935e5bddde2abdd40 to your computer and use it in GitHub Desktop.
postgres upgrade
# work fine for 9.4 to 13
pg_dump -c -U postgres postgre > db.sql
psql -U postgres < db.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment