Skip to content

Correct way to update PostgreSQL #4451

Discussion options

You must be logged in to vote

Decided to just use pg_upgrade directly:

  1. Moved the unversioned data to be the v14 data: mv /usr/local/var/postgres /usr/local/var/postgresql@14
  2. Installed postgresql@15 alongside postgresql@14
  3. Used pg_upgrade: /usr/local/opt/postgresql@15/bin/pg_upgrade -b /usr/local/opt/postgresql@14/bin -B /usr/local/opt/postgresql@15/bin -d /usr/local/var/postgresql@14 -D /usr/local/var/postgresql@15
  4. Uninstalled postgresql@14
  5. Linked postgresql@15

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@aheydari-rescale
Comment options

@Kyu
Comment options

Answer selected by MattIPv4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants