install and uninstall postgres #5209
Unanswered
MalikRumi
asked this question in
Getting started
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Output of
brew config
Output of
brew doctor
Description of issue
I am new to both Macs and homebrew. I installed postgresql 16 with brew a few days ago. However, none of the usual defaults I expected (like a user postgres and its database) were there. I was advised to uninstall and then reinstall. In the course of doing that, I navigated to /bin and, sure enough, now all my psql commands worked as expected - but only from bin, despite putting postgresql in the $PATH as instructed.
This warning did not make sense to me since, obviously, I had not installed 14 but 16, and surely brew should know that because it did it.
More confusion. What does 'Not installed' refer to? pg14? Any pg at all? I can't tell, but I looked and pg 16 was still there, exactly where I had last seen it, and there was no pg14 to be found.
Not true. I ran initdb, there is still no pg14, or any database cluster based on it, at that location or anywhere else, and what’s more, how can brew claim there is a default database when it just got through telling me it was not installed???
Why three warnings instead of just one? Are these coming from three different locations?
I confirmed once again that all I had was pg16 in the same location - and not uninstalled.
/opt/homebrew/Cellar/postgresql@16 does in fact exist, whether it is a 'keg' or not.
Then I went to your docs to look up 'uninstall', but most of that was aimed at brew developers and not at all helpful to me. So I came here. And now you know everything. How do I uninstall all this - safely, or course, and the correct version?
Beta Was this translation helpful? Give feedback.
All reactions