-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PostgreSQL: Mac uninstall #4743
Conversation
776070f
to
1b2e8b9
Compare
@@ -51,15 +52,21 @@ These instructions apply if you used EDB's interactive Mac installer to install | |||
|
|||
To uninstall PostgreSQL on a Mac system: | |||
|
|||
1. Assume the identity of an operating system superuser, and navigate into the folder where the uninstaller resides: | |||
1. Assume the identity of an operating system superuser. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm still rather unsure about this step - if it's actually necessary, I would expect an example - AFAIK, this is somewhat more involved on macs than on most Linux distros.
We should try to get more info here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@josh-heyer,
sudo /Library/PostgreSQL/13/uninstall-postgresql.app/Contents/MacOS/installbuilder.sh
launches the uninstaller in GUI mode on Mac
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nidhibhammar does that mean step 1 and 2 aren't necessary? I assume so.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have combined both steps and written as one step
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that this also executes a shell script instead of trying to launch the app directly. Not sure what's in the script, but perhaps this is why @kiisodj was encountering issues. If the shell script is the recommended way of launching the uninstaller, let's update the docs ASAP!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nidhibhammar can you confirm that the shell script is the recommended way of launching the uninstaller?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
YES , that's the right way to launch the uninstaller on MAC
sudo /Library/PostgreSQL/13/uninstall-postgresql.app/Contents/MacOS/installbuilder.sh
02958f3
to
e0fc648
Compare
1. Invoke the uninstaller: | ||
|
||
`open uninstall-postgresql.app` | ||
``` | ||
sudo /Library/PostgreSQL/<version>/uninstall-postgresql.app/Contents/MacOS/installbuilder.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sudo /Library/PostgreSQL/<version>/uninstall-postgresql.app/Contents/MacOS/installbuilder.sh | |
open /Library/PostgreSQL/<version>/uninstall-postgresql.app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not the appropriate way to invoke the uninstaller. It blocks the ability for users to use a safe admin account on the mac.
sudo /Library/PostgreSQL/<version>/uninstall-postgresql.app/Contents/MacOS/installbuilder.sh | ||
``` | ||
|
||
Where `<version>` is the version of PostgreSQL you installed. | ||
|
||
1. If prompted, provide a password that allows the uninstaller to make changes to your system. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- You will be prompted for a password. If your user has admin rights on macOS, enter your password. Otherwise, enter the user name and password of a user with admin rights.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expanded the wording to explain what is being prompted for.
1. Invoke the uninstaller: | ||
|
||
`open uninstall-postgresql.app` | ||
``` | ||
sudo /Library/PostgreSQL/<version>/uninstall-postgresql.app/Contents/MacOS/installbuilder.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not the appropriate way to invoke the uninstaller. It blocks the ability for users to use a safe admin account on the mac.
sudo /Library/PostgreSQL/<version>/uninstall-postgresql.app/Contents/MacOS/installbuilder.sh | ||
``` | ||
|
||
Where `<version>` is the version of PostgreSQL you installed. | ||
|
||
1. If prompted, provide a password that allows the uninstaller to make changes to your system. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expanded the wording to explain what is being prompted for.
e0fc648
to
3317023
Compare
advocacy_docs/supported-open-source/postgresql/uninstalling.mdx
Outdated
Show resolved
Hide resolved
23bda5e
to
4980cdb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What Changed?
Changes related to #4719