Created
February 28, 2023 15:04
-
-
Save tluyben/f02ba0ceaf3dcd2ad5af542e5a192891 to your computer and use it in GitHub Desktop.
Postgres Mac OS X install from binaries only
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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