Postgres + macOS High Sierra: Release ports and uninstall on a Mac - postgresql

When I started to work with Postgresql on my Mac I tried different things such as Postgres.app , postgresql.org installer etc. Now whenever I start my Mac it seems a Postgres database is running (I can connect to it with postico)
As I want to switch to Docker now, I somehow want to uninstall Postgres on my Mac and release the ports. Anyone knows how to do that?

Related

Installation of pgadmin4 - kinda

I've hit a wall in installing pgadmin4 on this system.
OS RHEL8
Postgres 14.2 on x86
I can switch shells to the postgres user, and view the table using psql - so that appears to be working as expected.
it also appears that i am using the pgadmin4-redhat-repo-2-1.noarch (because it returns it was upgraded)
Then i try to run
yum install pgadmin4
from my root shell
And it tries to downgrade my 2.1 to 0.9-2
I select N to stop the process, mainly because i don't want to downgrade, but also because i don't know what else to do.
Would anyone have any steps to perform to get the pgadmin4 running on this machine?

Postgresql password change

I want to use Postgresql 10.5 for musicbrainz https://bitbucket.org/lalinsky/mbslave/src
I have MacOS 10.12
I installed postgresql using these steps but cannot go from step 3. https://www.codementor.io/engineerapart/getting-started-with-postgresql-on-mac-osx-are8jcopb
I installed once and had added password for it. But I forgot it later and now I do not remember. I uninstalled and reinstalled it multiple times, restarted my laptop but nothing works. How can I remove or reset the password?

Trouble with postgresql local development on my mac

I have a total nightmare with trying to get started with postgresql local development on my mac.
I 1st installed it from the official site and got confused,
Then I installed postgres.app and it complains about HINT: Is another postmaster already running on port 5432?
And now I'm trying to use brew but also complains about the port.
I can't even kill the processes:
The error is happening because the port used by PostgreSQL is already in use (obvious right?).
Since you used the EnterpriseDB installer see the other answer in this thread.
The EnterpriseDB installer is what you get if you follow "download" links from the main Postgres web site. The Postgres team releases only source code, so the EnterpriseDB.com company builds installers as a courtesy to the community.
Here are some other methods to uninstall the app had you installed it via brew:
Completely uninstall PostgreSQL 9.0.4 from Mac OSX Lion?

Full uninstall of Postgresql 9.3.5

I installed postgresql 9.3.5 on OS X 10.9.4. I also used psql postgres to create database etc.
Ran in some issues where postgresql no longer works. The error is:
could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
So I brew uninstall postgres. Tried reinstalling but keep getting same error. I looked in the /Library.... and deleted the postgresql folder. Is there a way to fully remove this thing? I'm tempted to reinstall this mac but this is not the way to learn the long way of resolving this issue.
Completely uninstall PostgreSQL 9.0.4 from Mac OSX Lion?
This should work if you had previously used brew to install postgres:
brew uninstall
Double check /usr/local/var/postgres is also gone.
If installed with EnterpriseDB, use the second answer. You might also try it as it seems to be a complete manual uninstall.
Edit: after further review, it seems this is more of an issue with Postgres on OSX where as it defaults to the local installation rather than your installation: PostgreSQL error 'Could not connect to server: No such file or directory'

Does PostgreSQL exist on OS X Mavericks?

I knew there was a version of PostgreSQL installed on OS X Mountain Lion and if you want to work with this database engine you must install a new version and make some changes (http://nextmarvel.net/blog/2011/09/brew-install-postgresql-on-os-x-lion /). I didn't do this at that time because it was not necessary for me.
Now I have my Mac with OS X Mavericks (clean install) and if I run psql -- version as can be seen in this article (http://russbrooks.com/2010/11/25/install-postgresql-9-on-os-x), the terminal tells me that there is no such command.
~ ยป psql --version
zsh: correct 'psql' to 'sl' [nyae]? n
zsh: command not found: psql
Does PostgreSQL get installed by default when I do a clean install of OS X Mavericks?
If i want to try PostgreSQL on Mavericks, do I just need to run brew install postgresql and it`d be OK?
Has anyone tried this?
Thank you very much.
Yes, it should be safe to brew install postgresql, provided brew doctor indicates no problems.
My preferred approach is always to leave OS X builtins untouched, and use Homebrew to install separate versions of everything I'd like to work with. I've tried using OS X builtins in the past, and things have a way of getting messy in a hurry, especially when updating OS X.
For everyone who is looking for guide about how to install and configure postgres on the fresh Mavericks installation: http://marcinkubala.wordpress.com/2013/11/11/postgresql-on-os-x-mavericks/
I hope it will be helpful.
You can download different versions of PostgreSQL from Apple.
Also for a development environment you can use Postgres.app (http://postgresapp.com/):
Postgres.app is a simple, native Mac OS X app that runs in the menubar without the need of an installer. Open the app, and you have a PostgreSQL server ready and awaiting new connections. Close the app, and the server shuts down.
[http://www.postgresql.org/download/macosx/ ]