Как полностью удалить postgresql windows server

Prior to uninstalling PostgreSQL, you may need to review the installation procedure you performed and the related programs that are listed in "Add or Remove Programs" (For Windows XP SP3), Uninstall or change a program (for Windows Vista/7...


Download Article


Download Article

Prior to uninstalling PostgreSQL, you may need to review the installation procedure you performed and the related programs that are listed in «Add or Remove Programs» (For Windows XP SP3), Uninstall or change a program (for Windows Vista/7 Operating System), such as the pgAgent 3.0.1 or the MS Visual C++ 2008/2005. Read more details below.

  1. Image titled Uninstall PostgreSQL Step 1

    1

    Prepare. Before you start to uninstall «P — SQL», you may need to save your personal settings and data files: open up pgAdmin III — Object browser, visit the Tools menu; scroll down and run the option «Backup…».

  2. Image titled Uninstall PostgreSQL Step 3

    2

    Launch the option «Chang/Remove» for PostgreSQL program, version 9.1 (size, 172.00MB).

    Advertisement

  3. Image titled Uninstall PostgreSQL Step 5

    3

    Click on the «Yes» button on the «Question» window and then wait.

  4. Image titled Uninstall PostgreSQL Step 7

    4

    Click OK on Warning. You may then manually delete leftovers related to PostgreSQL, in its installation directory.

  5. Image titled Uninstall PostgreSQL Step 9

    5

    You then click «OK» on «Info».

  6. Image titled Uninstall PostgreSQL Step 11

    6

    Make sure that you have saved all of your files and programs. You then click Yes in Question information box to restart your device.

  7. Image titled Uninstall PostgreSQL Step 13

    7

    Remove the pgAgent 3.0.1 (size, 9.48MB).

  8. Image titled Uninstall PostgreSQL Step 16

    8

    Again, you may clean the file leftovers by hand.

  9. Image titled Uninstall Google Chrome Step 3

    9

    Continue to remove MS Visual C++ 2008, a component for PostgreSQL software.

  10. Image titled Uninstall Google Chrome Step 2

    10

    Remove C++ 2005 project listed.

  11. Image titled Diagnose a Slow Performing Computer Step 17

    11

    Save and reboot your computer. You manually search and clean those traces related the the programs installed above.

  12. Advertisement

Ask a Question

200 characters left

Include your email address to get a message when this question is answered.

Submit

Advertisement

Video

  • After uninstalling PostgreSQL, you can still find other ways to open your database files on PC or Mac if necessary.

Thanks for submitting a tip for review!

Advertisement

About This Article

Thanks to all authors for creating a page that has been read 90,737 times.

Is this article up to date?


Download Article


Download Article

Prior to uninstalling PostgreSQL, you may need to review the installation procedure you performed and the related programs that are listed in «Add or Remove Programs» (For Windows XP SP3), Uninstall or change a program (for Windows Vista/7 Operating System), such as the pgAgent 3.0.1 or the MS Visual C++ 2008/2005. Read more details below.

  1. Image titled Uninstall PostgreSQL Step 1

    1

    Prepare. Before you start to uninstall «P — SQL», you may need to save your personal settings and data files: open up pgAdmin III — Object browser, visit the Tools menu; scroll down and run the option «Backup…».

  2. Image titled Uninstall PostgreSQL Step 3

    2

    Launch the option «Chang/Remove» for PostgreSQL program, version 9.1 (size, 172.00MB).

    Advertisement

  3. Image titled Uninstall PostgreSQL Step 5

    3

    Click on the «Yes» button on the «Question» window and then wait.

  4. Image titled Uninstall PostgreSQL Step 7

    4

    Click OK on Warning. You may then manually delete leftovers related to PostgreSQL, in its installation directory.

  5. Image titled Uninstall PostgreSQL Step 9

    5

    You then click «OK» on «Info».

  6. Image titled Uninstall PostgreSQL Step 11

    6

    Make sure that you have saved all of your files and programs. You then click Yes in Question information box to restart your device.

  7. Image titled Uninstall PostgreSQL Step 13

    7

    Remove the pgAgent 3.0.1 (size, 9.48MB).

  8. Image titled Uninstall PostgreSQL Step 16

    8

    Again, you may clean the file leftovers by hand.

  9. Image titled Uninstall Google Chrome Step 3

    9

    Continue to remove MS Visual C++ 2008, a component for PostgreSQL software.

  10. Image titled Uninstall Google Chrome Step 2

    10

    Remove C++ 2005 project listed.

  11. Image titled Diagnose a Slow Performing Computer Step 17

    11

    Save and reboot your computer. You manually search and clean those traces related the the programs installed above.

  12. Advertisement

Ask a Question

200 characters left

Include your email address to get a message when this question is answered.

Submit

Advertisement

Video

  • After uninstalling PostgreSQL, you can still find other ways to open your database files on PC or Mac if necessary.

Thanks for submitting a tip for review!

Advertisement

About This Article

Thanks to all authors for creating a page that has been read 90,737 times.

Is this article up to date?

In this PostgreSQL tutorial, we will learn how to uninstall PostgreSQL from different operating systems. The possible reasons for uninstalling PostgreSQL could be the project is complete and you don’t need PostgreSQL, the software is at fault or broken, unable to update the PostgreSQL so want to reinstall with the latest version, etc.

  1. How to Uninstall PostgreSQL in Ubuntu
  2. How to uninstall PostgreSQL in Mac using Brew
  3. How to Uninstall PostgreSQL in Linux
  4. How to uninstall PostgreSQL in windows 10

In this section, we will learn how to completely uninstall PostgreSQL from Ubuntu. Ubuntu is the Debian package of Linux. We are using Ubuntu version 20.04 LTS but this method can be used for Ubuntu 16, 18, and 21.

  • We are uninstalling PostgreSQL with all of its dependencies from the Ubuntu operating system. The entire process is divided into three parts.
    • Uninstall the PostgreSQL application
    • Remove dependencies
    • Remove Folders
    • Remove users (optional)
  • To uninstall the PostgreSQL application we will use purge command. The Purge command in Linux removes the packages with configuration files.
sudo apt --purge remove postgresql -y
uninstall PostgreSQL in Ubuntu
Uninstall PostgreSQL
  • Before we can remove PostgreSQL dependencies it is important to have a look on all the dependencies. We are calling this process important because even at this stage you can save things before it is gone forever.

How to Uninstall PostgreSQL

Dependencies of PostgreSQL
  • Dependencies can be removed by passing the name of each file mentioned in the above diagram.
  • A screen will prompt asking for confirmation simply click enter for yes.
sudo apt-get --purge remove postgresql postgresql-13 postgresql-client-13 postgresql-client-common postgresql-common 
How to Uninstall PostgreSQL in Ubuntu
Removing dependencies
  • We have to remove three PostgreSQL folders that are present in lib, var and etc folders.
sudo rm -rf /var/lib/postgresql/
sudo rm -rf /var/log/postgresql/
sudo rm -rf /etc/postgresql/
  • The last step in the process is to remove the users created in PostgreSQL. By default, we have Postgres user created while installing PostgreSQL. If you have created any other user you can remove it with the same command just by replacing the Postgres with your username.
sudo deluser postgres

Read: PostgreSQL installation on Linux step by step

How to Uninstall PostgreSQL in Mac using Brew

In this section, we will learn how to uninstall PostgreSQL in Mac using Brew. In our blog Install PostgreSQL on Macintosh (Mac) we have shared the installation of PostgreSQL through the PostgreSQL app. So in this section, we’ll see how to remove the PostgreSQL app in Mac.

  • The best and easiest way to uninstall PostgreSQL completely from the Mac is by using the
    uninstall-postgres.app.
  • Navigate to the directory /Library/PostgreSQL/13. Here 13 is the version of PostgreSQL installed in your system.
  • There you will see a file uninstall-postgres.app, click to open the file.
  • The screen will appear with two options, select Entire application and click the Next button.
  • On the next screen, select all the checkboxes under the select components to uninstall and click on the Next button.
  • PostgreSQL will be uninstalled from the Mac and a confirmation prompt for the same will appear on the screen.

How to Uninstall PostgreSQL in Linux

In this section, we will cover how to uninstall PostgreSQL in Linux. We have covered How to Uninstall PostgreSQL from Debian Package so now we will see how to uninstall PostgreSQL from the RPM package in Linux.

  • RPM package include Red Hat, Centos, Fedora, etc. So if you are using one of these then you can follow the commands provided in this section.
  • First step towards uninstalling Postgres in Linux is to view the packages and their dependencies. Below mentioned command will list all the packages and dependencies.
rpm -qa | grep postgres
How to Uninstall PostgreSQL in Mac using Brew
View PostgreSQL packages and dependencies
  • Last step in the process is to remove the PostgreSQL from Linux. We are removing all the packages with the command.
# remove all the packages 
sudo yum remove postgres*
uninstall postgres from rpm package in linux
Uninstalling PostgreSQL from RPM package in Linux
Postgresql uninstallation completed in rpm package of Linux
PostgreSQL uninstall completed


How to uninstall PostgreSQL in windows 10

In this section, we will learn how to uninstall PostgreSQL in Windows 10. These steps can be followed on Windows 7 and windows 8, 8.1.

  • Open Control Panel
  • Right-click on the Postgres 13 and select uninstall
  • Select the radio button ‘Entire application‘ and click on Next.
  • Select all the checkboxes and click on Next.
  • A prompt will appear confirming that PostgreSQL has been uninstalled.

You may like the following PostgreSQL tutorials:

  • How to connect to PostgreSQL database
  • How to create a table in PostgreSQL [Terminal + pgAdmin]
  • How to Restart PostgreSQL (Linux, Windows, Mac)
  • PostgreSQL CASE with Examples

In this tutorial, we have learned how to uninstall PostgreSQL from different operating systems. Also, we have covered these topics.

  • How to Uninstall PostgreSQL in Ubuntu
  • How to Uninstall PostgreSQL in Mac using Brew
  • How to Uninstall PostgreSQL in Linux
  • How to uninstall PostgreSQL in windows 10

Bijay

I am Bijay having more than 15 years of experience in the Software Industry. During this time, I have worked on MariaDB and used it in a lot of projects. Most of our readers are from the United States, Canada, United Kingdom, Australia, New Zealand, etc.

Want to learn MariaDB? Check out all the articles and tutorials that I wrote on MariaDB. Also, I am a Microsoft MVP.

Как полностью удалить программу?
Делал по этому руководству:

Руководство по деинсталляции PostgreSQL
Если при создании базы данных программа не может подсоединиться к «Localhost», установлена старая версия PostgreSQL (8.3, например) или возникает какая-либо другая проблема, лучшим решением часто будет полное удаление текущей версии программы PostgreSQL из системы с последующей переустановкой заново вместе с Elephant’ом.

Пожалуйста, постарайтесь на 100% придерживаться данного руководства по деинсталляции для обеих операционных систем (Vista, XP)!

Для операционной системы Vista:

Условия: убедитесь в том, что функции вида папок позволяют вам видеть скрытые файлы (см. окончание руководства для Vista), Postgres установлена в C:/Program Files/Postgres, и учётная запись пользователя называется «postgres».

1) Пуск -> Панель управления -> Программы и компоненты -> Postgres / клик правой кнопкой мыши -> Удалить/изменить

2) Нажмите «Пуск», в поле для поиска введите «cmd». Поиск должен вывести один результат, кликните по нему правой кнопкой мыши, выберите «Запуск от имени администратора»

В диалоговом окне DOS введите:

«net user postgres /del»

3) В папке C:/Documents and Settings полностью удалите папку Postgres

4) Полностью удалите папку C:/Program File/Postgres

Очистите корзину, перезагрузите компьютер, готово.

Как сделать скрытые файлы и папки видимыми:

Зайдите в Пуск -> Панель управления > «Свойства папки». Кликните по вкладке «Вид».

Уберите галочку с опций «Скрывать защищённые системные файлы» и «Скрывать расширения для зарегистрированных типов файлов».

Поставьте галочку рядом с опцией «Показывать скрытые файлы и папки»

Но у меня В папке C:/Documents and Settings полностью удалите папку Postgres
Нет такой папки!!!

В итоге не могу полностью удалить старую программу что бы поставить Холдем Менеджер

Как полностью удалить программу?
Делал по этому руководству:

Руководство по деинсталляции PostgreSQL
Если при создании базы данных программа не может подсоединиться к «Localhost», установлена старая версия PostgreSQL (8.3, например) или возникает какая-либо другая проблема, лучшим решением часто будет полное удаление текущей версии программы PostgreSQL из системы с последующей переустановкой заново вместе с Elephant’ом.

Пожалуйста, постарайтесь на 100% придерживаться данного руководства по деинсталляции для обеих операционных систем (Vista, XP)!

Для операционной системы Vista:

Условия: убедитесь в том, что функции вида папок позволяют вам видеть скрытые файлы (см. окончание руководства для Vista), Postgres установлена в C:/Program Files/Postgres, и учётная запись пользователя называется «postgres».

1) Пуск -> Панель управления -> Программы и компоненты -> Postgres / клик правой кнопкой мыши -> Удалить/изменить

2) Нажмите «Пуск», в поле для поиска введите «cmd». Поиск должен вывести один результат, кликните по нему правой кнопкой мыши, выберите «Запуск от имени администратора»

В диалоговом окне DOS введите:

«net user postgres /del»

3) В папке C:/Documents and Settings полностью удалите папку Postgres

4) Полностью удалите папку C:/Program File/Postgres

Очистите корзину, перезагрузите компьютер, готово.

Как сделать скрытые файлы и папки видимыми:

Зайдите в Пуск -> Панель управления > «Свойства папки». Кликните по вкладке «Вид».

Уберите галочку с опций «Скрывать защищённые системные файлы» и «Скрывать расширения для зарегистрированных типов файлов».

Поставьте галочку рядом с опцией «Показывать скрытые файлы и папки»

Но у меня В папке C:/Documents and Settings полностью удалите папку Postgres
Нет такой папки.

В итоге не могу полностью удалить старую программу что бы поставить Холдем Менеджер

Как удалить PostgreSQL

Как удалить PostgreSQL

Часто возникают ситуации, когда PostgreSQL требуется удалить. Возможно что-то неправильно работает, не установилось. Казалось бы, что может быть проще, чем удалить программу с жесткого диска. Однако, когда речь заходит о PostgreSQL возникают определенные трудности.

Связаны они с тем, что Windows создает специальную учетную запись пользователя для базы данных, а сама PostgreSQL работает в онлайн режиме, как фоновая служба. Это все равно что попытаться при включенном компьютере вручную удалить саму операционную систему.

Между тем, установить новую PostgreSQL на старую — невозможно (точнее это не поможет избавиться от проблем).

Безвыходных положений не бывает. Внимательно читаем статью и узнаем о цепочке простых действий, которая поможет удалить PostgreSQL с компьютера.

Uninstalling PostgreSQL

The PostgreSQL installer creates an uninstaller in the PostgreSQL installation directory. This section walks you through uninstalling PostgreSQL on a Windows as well as a Mac host.

Uninstalling PostgreSQL on Windows

To uninstall PostgreSQL, navigate to the Windows Control Panel to open the Uninstall or change a program dialog and Right-click the PostgreSQL 13 and select Uninstall/Change from the context menu.

The Uninstall or change a program dialog

Fig. 1: The Uninstall or change a program dialog

You can either remove the entire application or individual components.

  • If you wish to remove the entire application, select the Entire application option and click Next to start uninstalling components.
  • If you wish to remove individual components, select the Individual components option and click Next , a selection screen opens, allowing you to select which components you wish to uninstall. Select the components you wish to uninstall, and click Next to start uninstalling components.

Confirm that you wish to uninstall PostgreSQL

Fig. 2: Confirm that you wish to uninstall PostgreSQL

Select the components you want to uninstall. Click Next when you are ready to continue.

Select the components to uninstall

Fig. 3: Select the components to uninstall s A progress bar will keep you informed as PostgreSQL is removed.

Uninstalling PostgreSQL

Fig. 4: Uninstalling PostgreSQL

When the uninstaller completes, click OK to exit.

An Info dialog confirms the uninstallation

Fig. 5: An Info dialog confirms the uninstallation

Uninstalling PostgreSQL on Mac

To uninstall PostgreSQL on a Mac system, assume the identity of an operating system superuser, and navigate into the folder in which the uninstaller resides:

Then, invoke the uninstaller with the command:

If prompted, provide a password that allows the uninstaller to make changes to your system. The uninstaller will open, asking you if you wish to uninstall the entire application or individual components.

To remove the entire application, select the Entire application option and click Next to start uninstalling components.

To remove individual components, select the Individual components option, a selection screen opens allowing you to select which components you wish to uninstall.

Remove the entire application or components

Fig. 6: Remove the entire application or components

Select the components you wish to uninstall, and click Next to start uninstalling components.

Selecting the components to uninstall

Fig. 7: Selecting the components to uninstall

Progress bars are displayed as each component is removed. When the uninstaller completes, click OK to exit the uninstaller.

6 / 5 / 1

Регистрация: 10.03.2016

Сообщений: 105

1

28.05.2020, 19:39. Показов 12485. Ответов 8


Всем добрый вечер) Я пытаюсь удалить сервер Postgres 12 с Windows 10, но не получается так как такого ярлыка нет в программах и компонентах. Также нет ярлыка uinstall.exe в папке с сервером… Подскажите пожалуйста как можно удалить его?

__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь



0



246 / 32 / 8

Регистрация: 17.02.2020

Сообщений: 168

28.05.2020, 20:02

2

Цитата
Сообщение от Kolyan1997
Посмотреть сообщение

Также нет ярлыка uinstall.exe

Папка есть где нибудь? Удали всю папку, руками.



1



1074 / 810 / 143

Регистрация: 25.07.2015

Сообщений: 1,791

29.05.2020, 06:58

3

Цитата
Сообщение от Akelo
Посмотреть сообщение

Папка есть где нибудь? Удали всю папку, руками.

Плохая идея.

Цитата
Сообщение от Kolyan1997
Посмотреть сообщение

Подскажите пожалуйста как можно удалить его?

Запустите установочный дистрибутив.
Должно появиться меню типа :
-обновить
-восстановить
-удалить
И удаляйте через него.



1



Maks

Модератор

Эксперт по компьютерным сетямЭксперт HardwareЭксперт Windows

6871 / 3818 / 477

Регистрация: 13.03.2013

Сообщений: 14,059

Записей в блоге: 9

29.05.2020, 07:25

4

Цитата
Сообщение от Akelo
Посмотреть сообщение

Папка есть где нибудь? Удали всю папку, руками.

Бред, это только усугубит ситуацю.

Kolyan1997,

Возможно поможет

1. Для начала делаем видимыми все скрытые и системные файлы (Пуск/Панель управления/Свойства папки/Вид)
2. Идем Пуск/Панель управления/Программы и компоненты/Postgres, кликаем правой кнопкой мыши, и выбираем Удалить/изменить.*
3. Нажимаем Пуск и в поле писка вводим cmd. Кликаем по результату поиска правой кнопкой мыши и запускаем от имени администратора.
4. В черненьком окне DOS набираем

Windows Batch file
1
net user postgres /del

5. Вручную удаляем папку с Postgres (пример адреса, C:/Program File/Postgres)
6. Чистим корзину.
7. Перезагружаем компьютер.

Источник

*Зайдите в «Программы и компоненты/Включение или отключение компонентов Windows».
Если и там нет, попробуйте использовать сторонний деинсталлер установленных программ.



0



Akelo

31.05.2020, 00:24

Не по теме:

Цитата
Сообщение от Maks
Посмотреть сообщение

Бред

Что слово не нашел? Теперь вся Россия разговаривает словами путина.



0



Модератор

Эксперт по компьютерным сетямЭксперт HardwareЭксперт Windows

6871 / 3818 / 477

Регистрация: 13.03.2013

Сообщений: 14,059

Записей в блоге: 9

31.05.2020, 06:14

6

Akelo, ни одна программа (если она не portable), и уж тем более компонент операционной системы так не удаляется.
Стало быть, Вы написали бред.

Не по теме:

Если хотите подискутировать на политическую тему, то Вы ошиблись форумом.



0



Модератор

Эксперт HardwareЭксперт Windows

15148 / 7736 / 726

Регистрация: 03.01.2012

Сообщений: 31,798

31.05.2020, 11:09

7

Почему нельзя удалять программу путём удаления папки:
в реестре остаётся запись, которая начинает жить своей жизнью. Особенно неприятно, если программа, которую вы так нештатно удалили, фигурирует в автозапуске. Тогда при старте системы всплывает сообщение о том, что такой-то файл не найден…
Это бывает и при использовании portable софта. Потому что такие проги тоже могут оставлять следы в реестре. Например, проги от Sysinternals

Миниатюры

Как удалить сервер PostgreSQL с Windows 10?
 



0



Модератор

Эксперт по компьютерным сетямЭксперт HardwareЭксперт Windows

6871 / 3818 / 477

Регистрация: 13.03.2013

Сообщений: 14,059

Записей в блоге: 9

01.06.2020, 06:15

8

Цитата
Сообщение от gecata
Посмотреть сообщение

Почему нельзя удалять программу путём удаления папки

Если с этой программой взаимодействуют другие программы? Например, в SQL хранятся учетки какого-нибудь софта?
Выкорчевывание софта методом удаления папки и записей в реестре сделает пофторную установку этого же софта проблематичной, например, для восстановления тех же учеток.
Есть куча конфигурационных файлов по директории %APPDATA% и прочего.

Не по теме:

Юля, ну тебе ли это не знать…



0



gecata

01.06.2020, 10:56


    Как удалить сервер PostgreSQL с Windows 10?

Не по теме:

Maks, Дык, я просто один пример привела… А перечислять, конечно, можно бесконечно. Антивири, которые повсюду суют свои UpperFilters, Office, который прорастает туда, где ему — вроде как — и делать-то нечего… Поэтому для них нужно не просто штатное удаление, а написаны специальные «удалялки»



0



IT_Exp

Эксперт

87844 / 49110 / 22898

Регистрация: 17.06.2006

Сообщений: 92,604

01.06.2020, 10:56

9

Понравилась статья? Поделить с друзьями:
  • Как полностью удалить outlook с компьютера windows 10
  • Как полностью удалить origin с компьютера windows 10
  • Как полностью удалить nvidia с компьютера windows 10
  • Как полностью удалить драйвер мыши windows 10
  • Как полностью удалить mysql windows 10