2

I have tried removing manually by removing PGAdmin4 from my applications folder. I also followed a few steps from this post here. To my surprise some of the files existed and I was able to remove them. However now when I run:

ps aux | grep postgres

Which results in:

1703   0.0  0.0 34252392    636 s000  R+    6:42PM   0:00.00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox postgres

When I run psql, I still see the command being registered and fails with,

psql
psql: error: could not connect to server: 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"?

For the next step I am trying the following command:

locate bin/psql

Which results in:

/Applications/Postgres.app/Contents/Versions/12/bin/psql
/Library/PostgreSQL/14/bin/psql
/Library/PostgreSQL/14/debug_symbols/bin/psql.dSYM
/Library/PostgreSQL/14/debug_symbols/bin/psql.dSYM/Contents
/Library/PostgreSQL/14/debug_symbols/bin/psql.dSYM/Contents/Info.plist
/Library/PostgreSQL/14/debug_symbols/bin/psql.dSYM/Contents/Resources
/Library/PostgreSQL/14/debug_symbols/bin/psql.dSYM/Contents/Resources/DWARF
/Library/PostgreSQL/14/debug_symbols/bin/psql.dSYM/Contents/Resources/DWARF/psql
/Users/Shared/DBngin/postgresql/11.0/bin/psql
/usr/local/Cellar/postgresql@11/11.16/bin/psql
/usr/local/Cellar/postgresql@14/14.11_1/bin/psql
/usr/local/bin/psql

I deleted the above mentioned folders but I still see the same result for locate. At this point I am not sure what should be my next steps to take to remove PGAdmin4 successfully from my Mac. Any pointers how I can remove it completely?

I'm planning to install PostgreSQL through Homebrew next but for that to work this copy needs to go.

Giacomo1968
  • 58,727
Ahmed
  • 121

0 Answers0