Last active
August 29, 2015 13:57
-
-
Save will/9772315 to your computer and use it in GitHub Desktop.
Running a devl build of postgres
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
git clone https://github.com/postgres/postgres.git && cd postgres | |
./configure --prefix=/tmp/postgres --with-openssl --with-ossp-uuid --with-libs=/usr/local/opt/readline/lib/ --with-includes=/usr/local/opt/readline/include/ | |
# skip the readline parts if you dont have readline installed but it makes `psql` better | |
make -sj8 | |
make install | |
/tmp/postgres/bin/initdb /tmp/postgres/data | |
echo "port = 54321" >> /tmp/postgres/data/postgresql.conf | |
/tmp/postgres/bin/postgres -D /tmp/postgres/data | |
/tmp/postgres/bin/psql -p 54321 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment