Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1anZJ2-0005oP-TA for pgsql-bugs@arkaria.postgresql.org; Tue, 05 Apr 2016 22:18:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1anZJ1-00044s-TG for pgsql-bugs@arkaria.postgresql.org; Tue, 05 Apr 2016 22:18:39 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1anZ6Y-0001uo-14 for pgsql-bugs@postgresql.org; Tue, 05 Apr 2016 22:05:46 +0000 Received: from mail.cepool.net ([5.196.186.123]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1anZ6L-0003bk-Ot for pgsql-bugs@postgresql.org; Tue, 05 Apr 2016 22:05:44 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.cepool.net (Postfix) with ESMTP id 1EB69B7590 for ; Wed, 6 Apr 2016 00:05:31 +0200 (CEST) Received: from mail.cepool.net ([127.0.0.1]) by localhost (mail.cepool.net [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id UndfkM41tgfH for ; Wed, 6 Apr 2016 00:05:30 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.cepool.net (Postfix) with ESMTP id 9644AB7599 for ; Wed, 6 Apr 2016 00:05:30 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.9.2 mail.cepool.net 9644AB7599 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daelemans.com; s=F7A99DA8-B446-11E4-9B88-CC649DA998B4; t=1459893930; bh=DnHpZgmmjjsKJiqiErkSjqxbSyxr67teu28CJQhC3J0=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=c/3kcct3WiupFrQuvJS09QRard83DnSFVwwveLG0R2NEuPZqb/ZwDASwdaOF+zo19 q1dpC3ZN1VeVDPg2uBJf+M40jWtXzql3bWnd9i7aYqt2zSkUXbsj3S8CJqTVahGoE8 Z9Mqi7iR0CR8MJAP7FgLwkkG7hpdoMCmXoTEBQaA= X-Virus-Scanned: amavisd-new at cepool.net Received: from mail.cepool.net ([127.0.0.1]) by localhost (mail.cepool.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Vdsz4Js6MDPG for ; Wed, 6 Apr 2016 00:05:30 +0200 (CEST) Received: from MARCOFFICE (unknown [77.109.101.230]) by mail.cepool.net (Postfix) with ESMTPSA id 5399EB7590 for ; Wed, 6 Apr 2016 00:05:30 +0200 (CEST) From: "Marc Daelemans" To: Subject: pg_upgrade on Windows Date: Wed, 6 Apr 2016 00:05:29 +0200 Message-ID: <003001d18f87$447facf0$cd7f06d0$@daelemans.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0031_01D18F98.0808F220" X-Mailer: Microsoft Outlook 14.0 Thread-Index: AdGPh0OovOl6FMRpR/GY8P6ikL106Q== Content-Language: nl-be X-Pg-Spam-Score: -0.1 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org This is a multipart message in MIME format. ------=_NextPart_000_0031_01D18F98.0808F220 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 ------=_NextPart_000_0031_01D18F98.0808F220 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

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

------=_NextPart_000_0031_01D18F98.0808F220--