主な問題は以下の 2 つです
インストール中にエラーが発生する
Problem running post-install step. Installation may not complete correctlyThe database cluster initialisation failed.
初期化中にエラーが発生する
The program "postgres" was found by "initdb" but was not the same version as initdb.
問題の原因は以前に cmd のエンコード形式を変更したことです
解決手順:
-
win+R
-
regedit を入力
-
コンピュータ\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor
を見つける -
Autorun を空にする
-
Postgresql を再インストール