pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marc Daelemans <marc@daelemans.com>
To: pgsql-bugs@postgresql.org
Subject: pg_upgrade on Windows
Date: Wed, 6 Apr 2016 00:05:29 +0200
Message-ID: <003001d18f87$447facf0$cd7f06d0$@daelemans.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Dear,

 

When one attempts to run pg_upgrade on Windows (7 SP 1 x64) the command
produces a failure notice, probably because writing to (log) files in
C:\Program Files and its subdirectories is not allowed.

 

C:\Program Files\PostgreSQL\9.5>pg_upgrade.exe --old-datadir "C:/Program
Files/P

ostgreSQL/9.4/data" --new-datadir "C:/Program Files/PostgreSQL/9.5/data"
--old-b

indir "C:/Program Files/PostgreSQL/9.4/bin" --new-bindir "C:/Program
Files/Postg

reSQL/9.5/bin"

 

cannot write to log file pg_upgrade_internal.log

Failure, exiting

 

Is there a way to redirect the log file to another file location?

 

Best regards,

Marc Daelemans

view thread (2+ messages)  latest in thread

Message-ID: <003001d18f87$447facf0$cd7f06d0$@daelemans.com>
Permalink:  ../003001d18f87$447facf0$cd7f06d0$@daelemans.com/
Also on:    postgresql.org/message-id/003001d18f87$447facf0$cd7f06d0$@daelemans.com

 · 

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: marc@daelemans.com
  Subject: Re: pg_upgrade on Windows
  In-Reply-To: <003001d18f87$447facf0$cd7f06d0$@daelemans.com>
  References: <003001d18f87$447facf0$cd7f06d0$@daelemans.com>

* 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