OS X – Completely Uninstall pgAdmin3

macmacospgadminpgadmin3postgresql

My pgAdmin3 install has run into a problem (windowing glitch that renders it unusable), and I want to try completely removing it from my system and installing it freshly to see if that resolves the issue. I've tried simply deleting the app and reinstalling that, which doesn't help, but when I do that it also remembers server connections from the previous install, so it must be leaving files somewhere. What do I have to clean up to completely remove pgAdmin3 so I can do a fresh install?

System info: Mac OS X 10.9.1 Mavericks, with pgAdmin3 v1.18.1 installed from the .dmg file downloaded from pgadmin.org

I have already tried

locate .pg*

which finds two files: .pgadmin_histoqueries and .pgpass both in my home directory – removing both didn't change anything. I've also removed pgadmin.log – again no effect.

I've also tried restoring pgAdmin3.app from Time Machine from before the windowing glitch started, but that also doesn't solve anything.

Best Answer

Check your ~/Library/Preferences-Folder. There are the following files you should also remove:

  • org.postgresql.pgadmin.plist.lockfile
  • org.postgresql.pgadmin.plist
  • pgadmin3 Preferences

Remove these also. Especially the last one which contains the server-list.

The org.postgresql.pgadmin.plist does seem to contain some information regarding the windowing system. So perhaps removing that one first might already do the trick.

Related Question