Hi Adam,
Check you are running the PostgreSQL installer as an administrator. Right-click on the installer and select Run as administrator.
Check any firewall or antivirus restriction is there or not.
Uninstall any previous versions and delete the PostgreSQL data folder.
otherwise uninstall this and delete all folder related to postgresql. Install again. try to install latest version from website.
you can check this video to install again
https://youtu.be/0n41UTkOBb0?si=9ZWDzMucPPPh49Nw
Thanks
Hi Aadam,
As per stackoverflow, the following method was the solution. use this link for the solution:
PostgreSql "running post install step…the Database Cluster Initialisation failed"
-- to create and run Postgresql database settings after installation :
"C:\Program Files\PostgreSQL\16\initdb.exe" -D "C:\Program Files\PostgreSQL\16\data" -U postgres --locale="English_United States.1252"
-- to create and run the Postgresql service:
"D:\PostgreSQL\16\bin\pg_ctl.exe" register -N postgresql-x64-16 -D "D:\PostgreSQL\16\bin\data"
There are a few details that I would like to draw attention to: My local computer has the settings Turkish_Turkey.1254. This is exactly how my previous Postgres installations were configured.
The problem seems to be related to windows update or EnterpriseDB deployment settings. However, I am not sure which one exactly caused this error.
The two lines above did exactly what I needed when I ran them from the command line (with administrator rights)
Hope it helps!
Thanks & Regards,
Manikandan K