BUG #16081: pg_upgrade is failed if a fake cmd.exe exist in the current directory.

Поиск
Список
Период
Сортировка
От PG Bug reporting form
Тема BUG #16081: pg_upgrade is failed if a fake cmd.exe exist in the current directory.
Дата
Msg-id 16081-a2abea4b6970c945@postgresql.org
обсуждение исходный текст
Ответы Re: BUG #16081: pg_upgrade is failed if a fake cmd.exe exist in thecurrent directory.  (Daniel Gustafsson <daniel@yesql.se>)
Список pgsql-bugs
The following bug has been logged on the website:

Bug reference:      16081
Logged by:          cili
Email address:      cilizili@protonmail.com
PostgreSQL version: 12.0
Operating system:   Microsoft Windows [Version 10.0.18362.418]
Description:

Similar to the case of pg_ctl. If a fake cmd.exe exits in current directory,
pg_upgrade is failed to start.

Instructions:
# cd %TEMP%
# "c:\Program Files\PostgreSQL\12\bin\pg_ctl.exe" initdb -D test
# set PGDATAOLD=%TEMP%\test
# set PGDATANEW=%TEMP%\test
# set PGBINOLD=c:\Program Files\PostgreSQL\12\bin
# set PGBINNEW=c:\Program Files\PostgreSQL\12\bin
# copy %windir%\system32\calc.exe cmd.exe
# "c:\Program Files\PostgreSQL\12\bin\pg_upgrade"
Performing Consistency Checks
-----------------------------
Checking cluster versions                                   ok

*failure*
Consult the last few lines of "pg_upgrade_server_start.log" or
"pg_upgrade_server.log" for
the probable cause of the failure.

Expected:
The database is upgraded.

Actual:
The Windows calculator is started and the upgrade command is failed.


В списке pgsql-bugs по дате отправления:

Предыдущее
От: PG Bug reporting form
Дата:
Сообщение: BUG #16080: pg_ctl is failed if a fake cmd.exe exist in the current directory.
Следующее
От: PG Bug reporting form
Дата:
Сообщение: BUG #16082: TOAST's pglz_decompress access to uninitialized data, if the database is corrupted.