“cannot write to log file pg_upgrade_internal.log” when upgrading from Postgresql 9.1 to 9.3

后端 未结 1 1273
终归单人心
终归单人心 2021-01-07 17:03

I keep on getting the above error whenever I run the following command via a postgres user.

/usr/lib/postgresql/9.3/bin/pg_upgrade \\
   -b /usr/lib/postgres         


        
相关标签:
1条回答
  • 2021-01-07 17:07

    Make sure that you run this command from a directory that is writable by the postgres user, like /tmp or /var/lib/postgresql:

    $ cd /tmp
    $ usr/lib/postgresql/9.3/bin/pg_upgrade ...
    
    0 讨论(0)
提交回复
热议问题