Hi All, I'm also facing this issue when I upgrade the postgres using pg_upgrade.exe from installer (install shield). Shown error could not create directory "1: CONNECTION TO SERVER AT "LOCALHOST" (::1), PORT 50432 FAILED: FATAL: COULD NOT ACCESS DIRECTORY "PG_TBLSPC/16394/PG_11_201809051/16395": INVALID ARGUMENT But when I executed pg_upgrade.exe from normal command line that time this command executed successfully... Any solution for this issue????
Recent windows update kb5019959 block part of psql execution from bat file when called by installer
As part of the installer, we are creating postgresql database using psql by calling from a batch file. After recent windows update [ kb5019959 ] the database creation part fails. tried with both windows 10 & 11. still the installation is getting fails. verified by uninstalling kb it works fine
content of bat file :
set AppDir=%~dp0
if %AppDir:~-1%==\ set AppBinPath=%AppDir:~0,-1%
@Rem85 set Parent path
for %%? in ("%~dp0..") do set TOPDIR=%%~f?
set CALog="%temp%\InstallConfig.log"
@Echo ================================================= >> %CALog%
@Echo Database Configuration >> %CALog%
@Echo ================================================= >> %CALog%
@Echo . >> %CALog%
@Echo Current Directory = %TOPDIR% >> %CALog%
@Echo . >> %CALog%
set PSQLInitDBAppPath="%TOPDIR%\pgsql\bin\initdb.exe"
set PSQLCTLAppPath="%TOPDIR%\pgsql\bin\pg_ctl.exe"
set PSQLAppPath="%TOPDIR%\pgsql\bin\psql.exe"
@Echo Creating database...
@Echo Creating database... >> %CALog%
icacls "%TOPDIR%\var" /grant *S-1-5-32-545:(OI)(CI)(F)
%PSQLInitDBAppPath% -D "%TOPDIR%\var\db" -E 'UTF-8' -U daemon
@Echo Result=%ERRORLEVEL% >> %CALog%
@Echo . >> %CALog%
@Echo Updating database configuration...
@Echo Updating database configuration... >> %CALog%
rename "%TOPDIR%\var\db*.conf" *.bak
@Echo Backup configuration: Result = %ERRORLEVEL% >> %CALog%
replace "%TOPDIR%\tmp\psql*.conf" "%TOPDIR%\var\db" /a
@Echo Copy New files: Result = %ERRORLEVEL% >> %CALog%
@Echo . >> %CALog%
@Rem85 RMDIR /s /q "%TOPDIR%\tmp\psql"
@Rem85 moving to postgresql bin directory
@Echo Starting database...
@Echo Starting database... >> %CALog%
rem TIMEOUT /T 10
mkdir "%TOPDIR%\var\basedb"
icacls "%TOPDIR%\var\basedb" /grant *S-1-5-32-545:(OI)(CI)(F)
@Echo Permission: Result = %ERRORLEVEL% >> %CALog%
%PSQLCTLAppPath% -s -w start -D "%TOPDIR%\var\db"
@Echo PSQL_CTL: Result=%ERRORLEVEL% >> %CALog%
@Echo . >> %CALog%
@Echo Creating base tablespace...
@Echo Creating base tablespace... >> %CALog%
%PSQLAppPath% -q -h 127.0.0.1 -p 55100 -U daemon -c "CREATE TABLESPACE basedb OWNER daemon LOCATION '%TOPDIR%/var/basedb/'" postgres
@Echo BaseDB: Result=%ERRORLEVEL% >> %CALog%
@Echo . >> %CALog%
@Echo Creating base database...
@Echo Creating base database... >> %CALog%
%PSQLAppPath% -q -h 127.0.0.1 -p 55100 -U daemon -c "CREATE DATABASE base TABLESPACE basedb" postgres
@Echo Database: Result=%ERRORLEVEL% >> %CALog%
@Echo . >> %CALog%
@Echo Creating database link...
@Echo Creating database link... >> %CALog%
%PSQLAppPath% -q -h 127.0.0.1 -p 55100 -U daemon -c "CREATE EXTENSION dblink" base
@Echo Link: Result= %ERRORLEVEL% >> %CALog%
@Echo . >> %CALog%
@Echo Creating base tables...
@Echo Creating base tables... >> %CALog%
%PSQLAppPath% -q -h 127.0.0.1 -p 55100 -U daemon -d base -f "%TOPDIR%\etc\db\setup.sql"
@Echo Tables: Result=%ERRORLEVEL% >> %CALog%
@Echo . >> %CALog%
@Echo Initializing base tables...
@Echo Initializing base tables... >> %CALog%
%PSQLAppPath% -q -h 127.0.0.1 -p 55100 -U daemon -d base -f "%TOPDIR%\etc\db\init_windows.sql"
@Echo Init: Result=%ERRORLEVEL% >> %CALog%
@Echo . >> %CALog%
if exist "%TOPDIR%\tmp\scripts\default\license.sql" (
@Echo Initializing license tables...
@Echo Initializing license tables... >> %CALog%
%PSQLAppPath% -q -h 127.0.0.1 -p 55100 -U daemon -d base -f "%TOPDIR%\tmp\scripts\default\license.sql"
@Echo License: Result=%ERRORLEVEL% >> %CALog%
@Echo . >> %CALog%
)
if exist "%temp%\reseller.sql" (
@Echo Adding reseller information...
@Echo Adding reseller information... >> %CALog%
%PSQLAppPath% -q -h 127.0.0.1 -p 55100 -U daemon -d base -f "%temp%\reseller.sql"
@Echo Reseller: Result=%ERRORLEVEL% >> %CALog%
@Echo . >> %CALog%
)
@Echo Stop database...
@Echo Stop database... >> %CALog%
%PSQLCTLAppPath% -s -D "%TOPDIR%\var\db" -w stop -m f
@Echo Stop: Result=%ERRORLEVEL% >> %CALog%
@Echo . >> %CALog%
@Echo Database configuration completed.
@Echo Database configuration completed. >> %CALog%
@Echo ================================================= >> %CALog%
Postgresql LOG:
[2022-11-19 00:38:45.947 IST] LOG: database system was shut down at 2022-11-19 00:38:45 IST
[2022-11-19 00:38:45.947 IST] DEBUG: mapped win32 error code 2 to 2
[2022-11-19 00:38:45.947 IST] DEBUG: mapped win32 error code 2 to 2
[2022-11-19 00:38:45.947 IST] DEBUG: checkpoint record is at 0/16A7670
[2022-11-19 00:38:45.947 IST] DEBUG: redo record is at 0/16A7670; shutdown TRUE
[2022-11-19 00:38:45.947 IST] DEBUG: next transaction ID: 0/672; next OID: 11913
[2022-11-19 00:38:45.947 IST] DEBUG: next MultiXactId: 1; next MultiXactOffset: 0
[2022-11-19 00:38:45.947 IST] DEBUG: oldest unfrozen transaction ID: 662, in database 1
[2022-11-19 00:38:45.947 IST] DEBUG: transaction ID wrap limit is 2147484309, limited by database with OID 1
[2022-11-19 00:38:45.954 IST] DEBUG: shmem_exit(0): 4 callbacks to make
[2022-11-19 00:38:45.954 IST] DEBUG: proc_exit(0): 2 callbacks to make
[2022-11-19 00:38:45.954 IST] DEBUG: exit(0)
[2022-11-19 00:38:45.954 IST] DEBUG: shmem_exit(-1): 0 callbacks to make
[2022-11-19 00:38:45.954 IST] DEBUG: proc_exit(-1): 0 callbacks to make
[2022-11-19 00:38:45.969 IST] DEBUG: reaping dead processes
[2022-11-19 00:38:45.980 IST] LOG: database system is ready to accept connections
[2022-11-19 00:38:46.001 IST] LOG: autovacuum launcher started
[2022-11-19 00:38:46.001 IST] DEBUG: InitPostgres
[2022-11-19 00:38:46.001 IST] DEBUG: my backend ID is 1
[2022-11-19 00:38:46.001 IST] DEBUG: mapped win32 error code 2 to 2
[2022-11-19 00:38:46.001 IST] DEBUG: StartTransaction
[2022-11-19 00:38:46.001 IST] DEBUG: name: unnamed; blockState: DEFAULT; state: INPROGR, xid/subid/cid: 0/1/0, nestlvl: 1, children:
[2022-11-19 00:38:46.001 IST] DEBUG: CommitTransaction
[2022-11-19 00:38:46.001 IST] DEBUG: name: unnamed; blockState: STARTED; state: INPROGR, xid/subid/cid: 0/1/0, nestlvl: 1, children:
[2022-11-19 00:38:46.001 IST] DEBUG: mapped win32 error code 2 to 2
[2022-11-19 00:38:46.001 IST] DEBUG: mapped win32 error code 2 to 2
[2022-11-19 00:38:46.880 IST] DEBUG: forked new backend, pid=4272 socket=7556
[2022-11-19 00:38:46.896 IST] DEBUG: postgres child[4272]: starting with (
[2022-11-19 00:38:46.896 IST] DEBUG: postgres
[2022-11-19 00:38:46.896 IST] DEBUG: postgres
[2022-11-19 00:38:46.896 IST] DEBUG: )
[2022-11-19 00:38:46.896 IST] DEBUG: InitPostgres
[2022-11-19 00:38:46.896 IST] DEBUG: my backend ID is 2
[2022-11-19 00:38:46.896 IST] DEBUG: mapped win32 error code 2 to 2
[2022-11-19 00:38:46.896 IST] DEBUG: StartTransaction
[2022-11-19 00:38:46.896 IST] DEBUG: name: unnamed; blockState: DEFAULT; state: INPROGR, xid/subid/cid: 0/1/0, nestlvl: 1, children:
[2022-11-19 00:38:46.896 IST] FATAL: role "SYSTEM" does not exist
[2022-11-19 00:38:46.896 IST] DEBUG: shmem_exit(1): 7 callbacks to make
[2022-11-19 00:38:46.896 IST] DEBUG: proc_exit(1): 3 callbacks to make
[2022-11-19 00:38:46.896 IST] DEBUG: exit(1)
[2022-11-19 00:38:46.896 IST] DEBUG: shmem_exit(-1): 0 callbacks to make
[2022-11-19 00:38:46.896 IST] DEBUG: proc_exit(-1): 0 callbacks to make
[2022-11-19 00:38:46.896 IST] DEBUG: reaping dead processes
[2022-11-19 00:38:46.896 IST] DEBUG: server process (PID 4272) exited with exit code 1
[2022-11-19 00:38:46.974 IST] DEBUG: forked new backend, pid=19428 socket=7556
[2022-11-19 00:38:46.990 IST] DEBUG: postgres child[19428]: starting with (
[2022-11-19 00:38:46.990 IST] DEBUG: postgres
[2022-11-19 00:38:46.990 IST] DEBUG: postgres
[2022-11-19 00:38:46.990 IST] DEBUG: )
[2022-11-19 00:38:46.990 IST] DEBUG: InitPostgres
[2022-11-19 00:38:46.990 IST] DEBUG: my backend ID is 2
[2022-11-19 00:38:46.990 IST] DEBUG: mapped win32 error code 2 to 2
[2022-11-19 00:38:46.990 IST] DEBUG: StartTransaction
[2022-11-19 00:38:46.990 IST] DEBUG: name: unnamed; blockState: DEFAULT; state: INPROGR, xid/subid/cid: 0/1/0, nestlvl: 1, children:
[2022-11-19 00:38:46.990 IST] DEBUG: mapped win32 error code 2 to 2
[2022-11-19 00:38:47.006 IST] DEBUG: CommitTransaction
[2022-11-19 00:38:47.006 IST] DEBUG: name: unnamed; blockState: STARTED; state: INPROGR, xid/subid/cid: 0/1/0, nestlvl: 1, children:
[2022-11-19 00:38:47.006 IST] DEBUG: StartTransactionCommand
[2022-11-19 00:38:47.006 IST] STATEMENT: CREATE TABLESPACE basedb OWNER daemon LOCATION 'C:\Amzetta Technologies\SCM/var/basedb/'
[2022-11-19 00:38:47.006 IST] DEBUG: StartTransaction
[2022-11-19 00:38:47.006 IST] STATEMENT: CREATE TABLESPACE basedb OWNER daemon LOCATION 'C:\Amzetta Technologies\SCM/var/basedb/'
[2022-11-19 00:38:47.006 IST] DEBUG: name: unnamed; blockState: DEFAULT; state: INPROGR, xid/subid/cid: 0/1/0, nestlvl: 1, children:
[2022-11-19 00:38:47.006 IST] STATEMENT: CREATE TABLESPACE basedb OWNER daemon LOCATION 'C:\Amzetta Technologies\SCM/var/basedb/'
[2022-11-19 00:38:47.006 IST] DEBUG: ProcessUtility
[2022-11-19 00:38:47.006 IST] STATEMENT: CREATE TABLESPACE basedb OWNER daemon LOCATION 'C:\Amzetta Technologies\SCM/var/basedb/'
[2022-11-19 00:38:47.006 IST] DEBUG: CommitTransactionCommand
[2022-11-19 00:38:47.006 IST] STATEMENT: CREATE TABLESPACE basedb OWNER daemon LOCATION 'C:\Amzetta Technologies\SCM/var/basedb/'
[2022-11-19 00:38:47.006 IST] DEBUG: CommitTransaction
[2022-11-19 00:38:47.006 IST] STATEMENT: CREATE TABLESPACE basedb OWNER daemon LOCATION 'C:\Amzetta Technologies\SCM/var/basedb/'
[2022-11-19 00:38:47.006 IST] DEBUG: name: unnamed; blockState: STARTED; state: INPROGR, xid/subid/cid: 672/1/0 (used), nestlvl: 1, children:
[2022-11-19 00:38:47.006 IST] STATEMENT: CREATE TABLESPACE basedb OWNER daemon LOCATION 'C:\Amzetta Technologies\SCM/var/basedb/'
[2022-11-19 00:38:47.006 IST] LOG: duration: 0.000 ms statement: CREATE TABLESPACE basedb OWNER daemon LOCATION 'C:\Amzetta Technologies\SCM/var/basedb/'
[2022-11-19 00:38:47.006 IST] DEBUG: shmem_exit(0): 7 callbacks to make
[2022-11-19 00:38:47.006 IST] DEBUG: proc_exit(0): 3 callbacks to make
[2022-11-19 00:38:47.006 IST] DEBUG: exit(0)
[2022-11-19 00:38:47.006 IST] DEBUG: shmem_exit(-1): 0 callbacks to make
[2022-11-19 00:38:47.006 IST] DEBUG: proc_exit(-1): 0 callbacks to make
[2022-11-19 00:38:47.006 IST] DEBUG: reaping dead processes
[2022-11-19 00:38:47.006 IST] DEBUG: server process (PID 19428) exited with exit code 0
[2022-11-19 00:38:47.037 IST] DEBUG: forked new backend, pid=18988 socket=7556
[2022-11-19 00:38:47.053 IST] DEBUG: postgres child[18988]: starting with (
[2022-11-19 00:38:47.053 IST] DEBUG: postgres
[2022-11-19 00:38:47.053 IST] DEBUG: postgres
[2022-11-19 00:38:47.053 IST] DEBUG: )
[2022-11-19 00:38:47.053 IST] DEBUG: InitPostgres
[2022-11-19 00:38:47.053 IST] DEBUG: my backend ID is 2
[2022-11-19 00:38:47.053 IST] DEBUG: StartTransaction
[2022-11-19 00:38:47.053 IST] DEBUG: name: unnamed; blockState: DEFAULT; state: INPROGR, xid/subid/cid: 0/1/0, nestlvl: 1, children:
[2022-11-19 00:38:47.053 IST] DEBUG: CommitTransaction
[2022-11-19 00:38:47.053 IST] DEBUG: name: unnamed; blockState: STARTED; state: INPROGR, xid/subid/cid: 0/1/0, nestlvl: 1, children:
[2022-11-19 00:38:47.053 IST] DEBUG: StartTransactionCommand
[2022-11-19 00:38:47.053 IST] STATEMENT: CREATE DATABASE base TABLESPACE basedb
[2022-11-19 00:38:47.053 IST] DEBUG: StartTransaction
[2022-11-19 00:38:47.053 IST] STATEMENT: CREATE DATABASE base TABLESPACE basedb
[2022-11-19 00:38:47.053 IST] DEBUG: name: unnamed; blockState: DEFAULT; state: INPROGR, xid/subid/cid: 0/1/0, nestlvl: 1, children:
[2022-11-19 00:38:47.053 IST] STATEMENT: CREATE DATABASE base TABLESPACE basedb
[2022-11-19 00:38:47.053 IST] DEBUG: ProcessUtility
[2022-11-19 00:38:47.053 IST] STATEMENT: CREATE DATABASE base TABLESPACE basedb
[2022-11-19 00:38:47.053 IST] DEBUG: mapped win32 error code 2 to 2
[2022-11-19 00:38:47.053 IST] STATEMENT: CREATE DATABASE base TABLESPACE basedb
[2022-11-19 00:38:47.068 IST] DEBUG: attempting to remove WAL segments older than log file 000000010000000000000000
[2022-11-19 00:38:47.162 IST] ERROR: could not create directory "pg_tblspc/16384/PG_9.1_201105231/16385": Invalid argument
[2022-11-19 00:38:47.162 IST] STATEMENT: CREATE DATABASE base TABLESPACE basedb
[2022-11-19 00:38:47.162 IST] DEBUG: shmem_exit(0): 7 callbacks to make
[2022-11-19 00:38:47.162 IST] DEBUG: proc_exit(0): 3 callbacks to make
[2022-11-19 00:38:47.162 IST] DEBUG: exit(0)
[2022-11-19 00:38:47.162 IST] DEBUG: shmem_exit(-1): 0 callbacks to make
[2022-11-19 00:38:47.162 IST] DEBUG: proc_exit(-1): 0 callbacks to make
[2022-11-19 00:38:47.169 IST] DEBUG: reaping dead processes
[2022-11-19 00:38:47.169 IST] DEBUG: server process (PID 18988) exited with exit code 0
[2022-11-19 00:38:47.194 IST] DEBUG: forked new backend, pid=6824 socket=7556
[2022-11-19 00:38:47.210 IST] DEBUG: postgres child[6824]: starting with (
[2022-11-19 00:38:47.210 IST] DEBUG: postgres
[2022-11-19 00:38:47.210 IST] DEBUG: base
[2022-11-19 00:38:47.210 IST] DEBUG: )
[2022-11-19 00:38:47.210 IST] DEBUG: InitPostgres
[2022-11-19 00:38:47.210 IST] DEBUG: my backend ID is 2
[2022-11-19 00:38:47.210 IST] DEBUG: StartTransaction
[2022-11-19 00:38:47.210 IST] DEBUG: name: unnamed; blockState: DEFAULT; state: INPROGR, xid/subid/cid: 0/1/0, nestlvl: 1, children:
[2022-11-19 00:38:47.210 IST] FATAL: database "base" does not exist
[2022-11-19 00:38:47.210 IST] DEBUG: shmem_exit(1): 7 callbacks to make
[2022-11-19 00:38:47.210 IST] DEBUG: proc_exit(1): 3 callbacks to make
[2022-11-19 00:38:47.210 IST] DEBUG: exit(1)
[2022-11-19 00:38:47.210 IST] DEBUG: shmem_exit(-1): 0 callbacks to make
[2022-11-19 00:38:47.210 IST] DEBUG: proc_exit(-1): 0 callbacks to make
[2022-11-19 00:38:47.225 IST] DEBUG: reaping dead processes
[2022-11-19 00:38:47.225 IST] DEBUG: server process (PID 6824) exited with exit code 1
[2022-11-19 00:38:47.257 IST] DEBUG: forked new backend, pid=8644 socket=7556
[2022-11-19 00:38:47.273 IST] DEBUG: postgres child[8644]: starting with (
[2022-11-19 00:38:47.273 IST] DEBUG: postgres
[2022-11-19 00:38:47.273 IST] DEBUG: base
[2022-11-19 00:38:47.273 IST] DEBUG: )
[2022-11-19 00:38:47.273 IST] DEBUG: InitPostgres
[2022-11-19 00:38:47.273 IST] DEBUG: my backend ID is 2
[2022-11-19 00:38:47.273 IST] DEBUG: StartTransaction
[2022-11-19 00:38:47.273 IST] DEBUG: name: unnamed; blockState: DEFAULT; state: INPROGR, xid/subid/cid: 0/1/0, nestlvl: 1, children:
[2022-11-19 00:38:47.273 IST] FATAL: database "base" does not exist
[2022-11-19 00:38:47.273 IST] DEBUG: shmem_exit(1): 7 callbacks to make
[2022-11-19 00:38:47.273 IST] DEBUG: proc_exit(1): 3 callbacks to make
[2022-11-19 00:38:47.273 IST] DEBUG: exit(1)
[2022-11-19 00:38:47.273 IST] DEBUG: shmem_exit(-1): 0 callbacks to make
[2022-11-19 00:38:47.273 IST] DEBUG: proc_exit(-1): 0 callbacks to make
[2022-11-19 00:38:47.273 IST] DEBUG: reaping dead processes
[2022-11-19 00:38:47.273 IST] DEBUG: server process (PID 8644) exited with exit code 1
[2022-11-19 00:38:47.304 IST] DEBUG: forked new backend, pid=10300 socket=7556
[2022-11-19 00:38:47.319 IST] DEBUG: postgres child[10300]: starting with (
[2022-11-19 00:38:47.319 IST] DEBUG: postgres
[2022-11-19 00:38:47.319 IST] DEBUG: base
[2022-11-19 00:38:47.319 IST] DEBUG: )
[2022-11-19 00:38:47.319 IST] DEBUG: InitPostgres
[2022-11-19 00:38:47.319 IST] DEBUG: my backend ID is 2
[2022-11-19 00:38:47.319 IST] DEBUG: StartTransaction
[2022-11-19 00:38:47.319 IST] DEBUG: name: unnamed; blockState: DEFAULT; state: INPROGR, xid/subid/cid: 0/1/0, nestlvl: 1, children:
[2022-11-19 00:38:47.319 IST] FATAL: database "base" does not exist
[2022-11-19 00:38:47.319 IST] DEBUG: shmem_exit(1): 7 callbacks to make
[2022-11-19 00:38:47.319 IST] DEBUG: proc_exit(1): 3 callbacks to make
[2022-11-19 00:38:47.319 IST] DEBUG: exit(1)
[2022-11-19 00:38:47.319 IST] DEBUG: shmem_exit(-1): 0 callbacks to make
[2022-11-19 00:38:47.319 IST] DEBUG: proc_exit(-1): 0 callbacks to make
[2022-11-19 00:38:47.319 IST] DEBUG: reaping dead processes
[2022-11-19 00:38:47.319 IST] DEBUG: server process (PID 10300) exited with exit code 1
[2022-11-19 00:38:47.351 IST] DEBUG: forked new backend, pid=6064 socket=7556
[2022-11-19 00:38:47.367 IST] DEBUG: postgres child[6064]: starting with (
[2022-11-19 00:38:47.367 IST] DEBUG: postgres
[2022-11-19 00:38:47.367 IST] DEBUG: base
[2022-11-19 00:38:47.367 IST] DEBUG: )
[2022-11-19 00:38:47.367 IST] DEBUG: InitPostgres
[2022-11-19 00:38:47.367 IST] DEBUG: my backend ID is 2
[2022-11-19 00:38:47.367 IST] DEBUG: StartTransaction
[2022-11-19 00:38:47.367 IST] DEBUG: name: unnamed; blockState: DEFAULT; state: INPROGR, xid/subid/cid: 0/1/0, nestlvl: 1, children:
[2022-11-19 00:38:47.367 IST] FATAL: database "base" does not exist
[2022-11-19 00:38:47.367 IST] DEBUG: shmem_exit(1): 7 callbacks to make
[2022-11-19 00:38:47.367 IST] DEBUG: proc_exit(1): 3 callbacks to make
[2022-11-19 00:38:47.367 IST] DEBUG: exit(1)
[2022-11-19 00:38:47.367 IST] DEBUG: shmem_exit(-1): 0 callbacks to make
[2022-11-19 00:38:47.367 IST] DEBUG: proc_exit(-1): 0 callbacks to make
[2022-11-19 00:38:47.367 IST] DEBUG: reaping dead processes
[2022-11-19 00:38:47.367 IST] DEBUG: server process (PID 6064) exited with exit code 1
[2022-11-19 00:38:47.398 IST] DEBUG: postmaster received signal 2
[2022-11-19 00:38:47.398 IST] LOG: received fast shutdown request
[2022-11-19 00:38:47.398 IST] LOG: aborting any active transactions
[2022-11-19 00:38:47.398 IST] LOG: autovacuum launcher shutting down
[2022-11-19 00:38:47.398 IST] DEBUG: shmem_exit(0): 7 callbacks to make
[2022-11-19 00:38:47.398 IST] DEBUG: proc_exit(0): 2 callbacks to make
[2022-11-19 00:38:47.398 IST] DEBUG: exit(0)
[2022-11-19 00:38:47.398 IST] DEBUG: shmem_exit(-1): 0 callbacks to make
[2022-11-19 00:38:47.398 IST] DEBUG: proc_exit(-1): 0 callbacks to make
[2022-11-19 00:38:47.398 IST] DEBUG: shmem_exit(0): 4 callbacks to make
[2022-11-19 00:38:47.398 IST] DEBUG: proc_exit(0): 2 callbacks to make
[2022-11-19 00:38:47.398 IST] DEBUG: exit(0)
[2022-11-19 00:38:47.398 IST] DEBUG: shmem_exit(-1): 0 callbacks to make
[2022-11-19 00:38:47.398 IST] DEBUG: proc_exit(-1): 0 callbacks to make
[2022-11-19 00:38:47.398 IST] DEBUG: reaping dead processes
[2022-11-19 00:38:47.398 IST] DEBUG: reaping dead processes
[2022-11-19 00:38:47.398 IST] LOG: shutting down
[2022-11-19 00:38:47.414 IST] DEBUG: attempting to remove WAL segments older than log file 000000010000000000000000
[2022-11-19 00:38:47.414 IST] LOG: database system is shut down
[2022-11-19 00:38:47.414 IST] DEBUG: shmem_exit(0): 4 callbacks to make
[2022-11-19 00:38:47.414 IST] DEBUG: proc_exit(0): 2 callbacks to make
[2022-11-19 00:38:47.414 IST] DEBUG: exit(0)
[2022-11-19 00:38:47.414 IST] DEBUG: shmem_exit(-1): 0 callbacks to make
[2022-11-19 00:38:47.414 IST] DEBUG: proc_exit(-1): 0 callbacks to make
[2022-11-19 00:38:47.414 IST] DEBUG: reaping dead processes
[2022-11-19 00:38:47.424 IST] DEBUG: reaping dead processes
[2022-11-19 00:38:47.424 IST] DEBUG: shmem_exit(0): 2 callbacks to make
[2022-11-19 00:38:47.424 IST] DEBUG: proc_exit(0): 1 callbacks to make
[2022-11-19 00:38:47.424 IST] DEBUG: exit(0)
[2022-11-19 00:38:47.424 IST] DEBUG: shmem_exit(-1): 0 callbacks to make
[2022-11-19 00:38:47.424 IST] DEBUG: proc_exit(-1): 0 callbacks to make
[2022-11-19 00:38:47.948 IST] DEBUG: logger shutting down
[2022-11-19 00:38:47.951 IST] DEBUG: shmem_exit(0): 0 callbacks to make
[2022-11-19 00:38:47.951 IST] DEBUG: proc_exit(0): 0 callbacks to make
[2022-11-19 00:38:47.951 IST] DEBUG: exit(0)
[2022-11-19 00:38:48.879 IST] LOG: database system was shut down at 2022-11-19 00:38:47 IST
[2022-11-19 00:38:48.879 IST] LOG: could not open tablespace directory "pg_tblspc/16384/PG_9.1_201105231": No such file or directory
Note*
This database creation fails only after recent windows update. If we create a new VM and install its successful. [if we disable windows update]
Windows for business | Windows Client for IT Pros | Devices and deployment | Configure application groups
Windows for business | Windows Client for IT Pros | User experience | Other
2 answers
Sort by: Most helpful
-
-
Anonymous
2023-03-02T10:01:44.4566667+00:00 I have a similar problem with a batch file which contains the pgctl start command to start the database as background job. With a new Windows version the postgres background job ends immediately together with ending of the batch file. After that I got a connection error, because the background job was killed. In previous Windows versions the background database job was still running until I call "pg_ctl stop" in the command line.