"pg_upgrade" cannot write to log file pg_upgrade_internal.log

From: "Yang, Leo" <leo(dot)yang(at)hp(dot)com>
To: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: "pg_upgrade" cannot write to log file pg_upgrade_internal.log
Date: 2015-12-15 09:54:16
Message-ID: DF4PR84MB023487731C361CDA92773C9FF4EE0@DF4PR84MB0234.NAMPRD84.PROD.OUTLOOK.COM
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I run "pg_upgrade -xx" fromPostgreSQL8.3 to PostgreSQL9.4.5 on window server 2008. It will show some wrong information:

cannot write to log file pg_upgrade_internal.log
Failure, exiting.

It seems that the upgrade can be successful on window 7. It seems to be a permissions problem. I get some information about restricting privileges from source code, and I find the changes "Run pg_upgrade and pg_resetxlog with restricted privileges on Windows, so that they don't fail when run by an administrator (refer to http://www.postgresql.org/docs/9.4/static/release-9-4-2.html )" for release 9.4.2. Why did you do this? How can I solve this problem? I hope you can help me.

Best Regards,
Leo

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fabien COELHO 2015-12-15 11:41:44 Re: pgbench stats per script & other stuff
Previous Message Andreas Karlsson 2015-12-15 08:35:41 Check for interrupts in bf and xdes crypt()