pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: cilizili@protonmail.com
Subject: BUG #16081: pg_upgrade is failed if  a fake cmd.exe exist in the current directory.
Date: Sat, 26 Oct 2019 04:32:55 +0000
Message-ID: <16081-a2abea4b6970c945@postgresql.org> (raw)

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.



view thread (2+ messages)  latest in thread

Message-ID: <16081-a2abea4b6970c945@postgresql.org>
Permalink:  ../16081-a2abea4b6970c945@postgresql.org/
Also on:    postgresql.org/message-id/16081-a2abea4b6970c945@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, cilizili@protonmail.com
  Subject: Re: BUG #16081: pg_upgrade is failed if  a fake cmd.exe exist in the current directory.
  In-Reply-To: <16081-a2abea4b6970c945@postgresql.org>
  References: <16081-a2abea4b6970c945@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox