我似乎陷入了两个操作之间,两者都是<li><a href="#">sampletest1</a></li>
<li><a href="#">sampletest2</a></li>
<li><a href="#">sampletest3</a></li>
<li><a href="#">sampletest4</a></li>
<li><a href="#">sampletest5</a></li>
用来切换pg_upgrade
主要版本,而PostgreSQL
是用来控制pg_ctl
的当前邮政局长控制权的。
old cluster
我尝试重命名[Sun Dec 30 09:29 rich@HQ /usr/local/var] /usr/local/Cellar/postgresql@10/10.6/bin/pg_upgrade -v \
> -b /usr/local/Cellar/postgresql@10/10.6/bin \
> -B /usr/local/Cellar/postgresql/11.1/bin \
> -d /usr/local/var/postgres.old \
> -D /usr/local/var/postgres
Running in verbose mode
"/usr/local/Cellar/postgresql@10/10.6/bin/pg_ctl" -w -l "pg_upgrade_server.log" -D "/usr/local/var/postgres.old" -o "-p 50432 -c autovacuum=off -c autovacuum_freeze_max_age=2000000000 -c listen_addresses='' -c unix_socket_permissions=0700" start >> "pg_upgrade_server.log" 2>&1
There seems to be a postmaster servicing the old cluster.
Please shutdown that postmaster and try again.
Failure, exiting
,但没有解决任何问题。文件说我可以使用/usr/local/var/postgres/postgresql.pid
关闭邮局局长,但这不起作用:
pg_ctl
因此,我不能在不关闭邮局主管的情况下升级该版本,并且关闭邮局主管需要初始化新版本。我被抓了关于如何使[Sun Dec 30 09:44 rich@HQ ~] pg_ctl --pgdata=/usr/local/var/postgres start -m fast
pg_ctl: another server might be running; trying to start server anyway
waiting for server to start....2018-12-30 09:44:33.541 EST [12042] FATAL: database files are incompatible with server
2018-12-30 09:44:33.541 EST [12042] DETAIL: The data directory was initialized by PostgreSQL version 10, which is not compatible with this version 11.1.
stopped waiting
pg_ctl: could not start server
Examine the log output.
工作的任何见解都值得赞赏。
更新
尝试处理旧版本后,更新日志显示以下内容:
11.1