The following bug has been logged on the website:
Bug reference: 18670
Logged by: Wilson Tian
Email address: wilson.tian@jci.com
PostgreSQL version: 17.0
Operating system: Windows 10
Description:
I am installing the latest version with postgresql-17.0-1-windows-x64.exe,
while going to the step to install cluster, it will failed, and the
PostgreSQL can't run;
I've changed different languages to do that, but it doesn't solve the
problem, still failed
Granting full access to Administrators on (C:\Program
Files\PostgreSQL\17\data)
Executing batch file 'radCE47D.bat'...
processed file: C:\Program Files\PostgreSQL\17\data
Successfully processed 1 files; Failed processing 0 files
Executing batch file 'radCE47D.bat'...
ÊôÓÚ´ËÊý¾Ý¿âϵͳµÄÎļþËÞÖ÷ΪÓû§ "jtianwi".
´ËÓû§Ò²±ØÐëΪ·þÎñÆ÷½ø³ÌµÄËÞÖ÷.
Êý¾Ý¿â¼¯´Ø½«ÒÔÇøÓò»·¾³ÉèÖà "English_United States.1252" ½øÐгõʼ»¯.
ĬÈϵÄÎı¾ËÑË÷ÅäÖý«±»ÉèΪ "english".
½ûֹΪÊý¾ÝÒ³Éú³ÉУÑéºÍ.
ÕýÔÚÐÞ¸´ÒÑ´æÔÚĿ¼ C:/Program Files/PostgreSQL/17/data µÄȨÏÞ ... ³É¹¦
ÕýÔÚ´´½¨×ÓĿ¼ ... ³É¹¦
ÕýÔÚÑ¡Ôñ¶¯Ì¬¹²ÏíÄÚ´æÊµÏÖ ... windows
ÕýÔÚÑ¡ÔñĬÈÏ×î´óÁ¬½ÓÊý (max_connections) ... 20
ÕýÔÚÑ¡ÔñĬÈϹ²Ïí»º³åÇø (shared_buffers) ... 400kB
ÕýÔÚÑ¡ÔñĬÈÏÊ±Çø ... Asia/Shanghai
ÕýÔÚ´´½¨ÅäÖÃÎļþ ... ³É¹¦
ÕýÔÚÔËÐÐÆô¶¯½Å±¾ ... ²»ÔÊÐí¹ÜÀíԱȨÏÞµÄÓû§ÔËÐÐ PostgreSQL ·þÎñÆ÷.
·þÎñÆ÷±ØÐëÒÔÒ»¸ö·ÇÌØÈ¨µÄÓû§Éí·ÝÆô¶¯ÒÔ±ÜÃâ
¿ÉÄܵÄϵͳ°²È«ÐÔÎÊÌâ. ²ÎÔÄÎĵµ»ñÈ¡¸ü¶à
ÓйØÈçºÎÕýÈ·Æô¶¯·þÎñÆ÷µÄÐÅÏ¢.
×Ó½ø³ÌÒÑÍ˳ö, Í˳öÂëΪ 1
initdb: ÕýÔÚɾ³ýÊý¾ÝĿ¼ "C:/Program Files/PostgreSQL/17/data" µÄÄÚÈÝ
Called Die(Failed to initialise the database cluster with initdb)...
Failed to initialise the database cluster with initdb
Script stderr:
Program ended with an error exit code
Error running C:\WINDOWS\System32\cscript //NoLogo "C:\Program
Files\PostgreSQL\17/installer/server/initcluster.vbs" "NT
AUTHORITY\NetworkService" "postgres" "****"
"C:\Users\jtianwi\AppData\Local\Temp/postgresql_installer_d4f3e2d1b6"
"C:\Program Files\PostgreSQL\17" "C:\Program Files\PostgreSQL\17\data" 5432
"English,UnitedStates" 0: Program ended with an error exit code
Problem running post-install step. Installation may not complete correctly
The database cluster initialisation failed.
Setting variable whoami from C:\WINDOWS\System32\whoami
Script exit code: 0