pg_upgrade on Windows - Mailing list pgsql-general

From Igal @ Lucee.org
Subject pg_upgrade on Windows
Date
Msg-id 568ECB5A.8070700@lucee.org
Whole thread Raw
Responses Re: pg_upgrade on Windows  (John R Pierce <pierce@hogranch.com>)
List pgsql-general
hi guys,

I am having issues with pg_upgrade on Windows.  I have posted a question on StackOverflow -- at http://stackoverflow.com/questions/34664236/pg-upgrade-on-windows-cannot-write-to-log-file-pg-upgrade-internal-log -- copied below for convenience:

I'm trying to run pg_upgrade on Windows, but I'm getting the error:

cannot write to log file pg_upgrade_internal.log Failure, exiting

I saw a similar question for Linux at 23216734 which explains that the issue is with permissions, but it doesn't help with Windows as I do not have a user named postgres

Same goes for the pg_upgrade docs, which mention a postgres user:

RUNAS /USER:postgres "CMD.EXE"

But again, I do not have such a user, and am trying to run this command as Administrator so I don't understand why I would have no permission. I even tried to do

RUNAS /USER:Administrator "CMD.EXE"

And run pg_upgrade in the new command prompt, but am getting the same error.

Also, I am not sure which directory needs permissions? Where is the process trying to write pg_upgrade_internal.log to? any ideas?  TIA!

--

Igal Sapir
Lucee Core Developer
Lucee.org

pgsql-general by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: Postgresql 9.3 not coming up after restart in centos
Next
From: "balajishanmugam@live.in"
Date:
Subject: Re: Postgresql 9.3 not coming up after restart in centos