Skip to content

Instantly share code, notes, and snippets.

View theotherdon's full-sized avatar

Don Schrimsher theotherdon

  • Atlanta, GA
View GitHub Profile
@Hritik14
Hritik14 / upgrade.sh
Last active January 6, 2025 21:16
Upgrade to postgresql@15 from postgresql14 on mac
# stop both postgres (if you have 15 installed already)
brew services stop postgresql@14
brew services stop postgresql@15
brew link postgresql@14 # Important, need to use old links
# You might want to change sub versions mentioned below for 15.* and 14.*
/opt/homebrew/Cellar/postgresql@15/15.4_1/bin/pg_upgrade \
--old-bindir=/opt/homebrew/Cellar/postgresql@14/14.9_1/bin/\
--old-datadir /opt/homebrew/var/postgresql@14 \