"pg_upgrade" cannot write to log file pg_upgrade_internal.log - Mailing list pgsql-hackers

From Yang, Leo
Subject "pg_upgrade" cannot write to log file pg_upgrade_internal.log
Date
Msg-id DF4PR84MB023487731C361CDA92773C9FF4EE0@DF4PR84MB0234.NAMPRD84.PROD.OUTLOOK.COM
Whole thread Raw
Responses Re: "pg_upgrade" cannot write to log file pg_upgrade_internal.log
List 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

 

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: extend pgbench expressions with functions
Next
From: Tomas Vondra
Date:
Subject: Re: pg_hba_lookup function to get all matching pg_hba.conf entries