issue during installation of postgresql binary zip

From: sadaqat <sadaqatcustom(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: issue during installation of postgresql binary zip
Date: 2021-04-09 20:37:21
Message-ID: CA+7WMyVjPqYTTQAqqjnOAO=__AcBfA_hriy-nSgbivpkufo6Ng@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I am trying to install a binary zip into my different machines using a
batch file,
it works on some machines but giving me this error on other machines.

*Windows Event log:*
Faulting application name: initdb.exe, version: 13.0.1.20314, time stamp:
0x5faa5f0f
Faulting module name: ucrtbase.dll, version: 10.0.14393.3659, time stamp:
0x5e9140a1
Exception code: 0xc0000409
Fault offset: 0x000000000006c9e8
Faulting process id: 0x579c
Faulting application start time: 0x01d72d5bc0a912a0
Faulting application path: C:\pgsql\bin\initdb.exe
Faulting module path: C:\WINDOWS\System32\ucrtbase.dll
Report Id: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Faulting package full name:
Faulting package-relative application ID:

any help is highly appreciated.

I am using this script
@ECHO OFF
@SET PATH="%~dp0\bin";%PATH%
@SET PGDATA=%~dp0\datad
@SET PGDATABASE=postgres
@SET PGUSER=postgres
@SET PGPORT=5432
@SET PGLOCALEDIR=%~dp0\share\locale

ECHO.
IF EXIST datad (
ECHO This instance already initialized.
ECHO.
) ELSE (
ECHO First run, wait for initializing.
"%~dp0\bin\initdb" -U postgres -A trust
ECHO.
)
"%~dp0\bin\pg_ctl" -D "%~dp0/datad" -l logfile start

"%~dp0\bin\pg_ctl" register -N "postgSQLSer" -D C:/pgsql/datad"

Browse pgsql-general by date

  From Date Subject
Next Message Richard Yen 2021-04-09 22:21:45 Re: Multiple LDAP Servers for ldap Authentication
Previous Message Niels Jespersen 2021-04-09 17:39:01 SV: where clauses including timstamptz and intervals