postgresql reappearing after reinstalaltion
01:15 30 Jul 2026

PostgreSQL 9.5 Still Appears in pgAdmin 4 After Complete Uninstallation and Fresh Installation of PostgreSQL 17.7.2

Environment

  • Operating System: Windows Server 2022 (Cloud VM)

  • Original PostgreSQL Version: 9.5

  • New PostgreSQL Version: 17.7.2

  • Administration Tool: pgAdmin 4

Issue

We are upgrading PostgreSQL from 9.5 to 17.7.2 on a Windows Server 2022 cloud machine.

Although PostgreSQL 9.5 has been completely removed and PostgreSQL 17.7.2 has been freshly installed multiple times, pgAdmin 4 continues to display "PostgreSQL 9.5".

We would like to understand why this is happening and how to completely remove the old PostgreSQL 9.5 entry.

Steps Performed

First Installation Attempt

  1. Uninstalled PostgreSQL 9.5 from the Administrator account.

  2. Rebooted the server.

  3. Deleted the PostgreSQL installation folder from the E: drive.

  4. Rebooted the server again.

  5. Installed PostgreSQL 17.7.2 on the E: drive with a newly created data directory.

  6. Opened pgAdmin 4 and noticed that "PostgreSQL 9.5" still appeared.

Second Installation Attempt

To eliminate any leftover files:

  1. Uninstalled PostgreSQL 17.7.2.

  2. Rebooted the server.

  3. Deleted the PostgreSQL folder from the E: drive.

  4. Rebooted the server.

  5. Installed PostgreSQL 17.7.2 on the C: drive.

  6. Opened pgAdmin 4.

  7. The same issue remained—PostgreSQL 9.5 was still displayed.

Third Installation Attempt

  1. Uninstalled PostgreSQL 17.7.2 again.

  2. Rebooted the server.

  3. Deleted the PostgreSQL folder from the C: drive.

  4. Rebooted the server.

  5. Installed PostgreSQL 17.7.2 again on the E: drive.

  6. The issue still persisted.

pgAdmin Cleanup Performed

We also deleted the following folders from the Administrator profile:

C:\Users\Administrator\AppData\Roaming\pgadmin
C:\Users\Administrator\AppData\Roaming\pgadmin4

We checked all other Windows user profiles and found that these folders did not exist for any other user.

After another reboot, pgAdmin 4 still displays PostgreSQL 9.5.

Any suggestions or guidance to resolve this issue would be greatly appreciated. If anyone has encountered a similar situation or knows how to completely remove the old PostgreSQL 9.5 reference from pgAdmin 4, please share your recommendations. Thank you in advance for your help.

postgresql