Created
April 29, 2024 06:19
-
-
Save timvw/87e671686190e69ac12155e61aba1560 to your computer and use it in GitHub Desktop.
postgresql@16
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
==> postgresql@16 | |
This formula has created a default database cluster with: | |
initdb --locale=C -E UTF-8 /opt/homebrew/var/postgresql@16 | |
For more details, read: | |
https://www.postgresql.org/docs/16/app-initdb.html | |
postgresql@16 is keg-only, which means it was not symlinked into /opt/homebrew, | |
because this is an alternate version of another formula. | |
If you need to have postgresql@16 first in your PATH, run: | |
echo 'export PATH="/opt/homebrew/opt/postgresql@16/bin:$PATH"' >> ~/.zshrc | |
For compilers to find postgresql@16 you may need to set: | |
export LDFLAGS="-L/opt/homebrew/opt/postgresql@16/lib" | |
export CPPFLAGS="-I/opt/homebrew/opt/postgresql@16/include" | |
For pkg-config to find postgresql@16 you may need to set: | |
export PKG_CONFIG_PATH="/opt/homebrew/opt/postgresql@16/lib/pkgconfig" | |
To start postgresql@16 now and restart at login: | |
brew services start postgresql@16 | |
Or, if you don't want/need a background service you can just run: | |
LC_ALL="C" /opt/homebrew/opt/postgresql@16/bin/postgres -D /opt/homebrew/var/postgresql@16 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment