Skip to content

Instantly share code, notes, and snippets.

@tluyben
Created February 28, 2023 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tluyben/f02ba0ceaf3dcd2ad5af542e5a192891 to your computer and use it in GitHub Desktop.
Save tluyben/f02ba0ceaf3dcd2ad5af542e5a192891 to your computer and use it in GitHub Desktop.
Postgres Mac OS X install from binaries only
#!/bin/bash
wget -O pgsql.zip "https://sbp.enterprisedb.com/getfile.jsp?fileid=1258319"
unzip -dpgsql_binaries pgsql.zip
rm pgsql.zip
cd pgsql_binaries
xattr -d com.apple.quarantine ./bin/*
xattr -d com.apple.quarantine ./lib/*
xattr -d com.apple.quarantine ./lib/postgresql/*
./bin/initdb -D ./pgdata -U postgres -W -E UTF8 -A scram-sha-256
./bin/pg_ctl -D ./pgdata -l logfile start
#./bin/pg_ctl -D ./pgdata -l logfile stop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment