我正在从9.1.4升级到Postgres 9.2.2。当我尝试使用以下方法升级数据库时:
pg_upgrade -b /usr/local/Cellar/postgresql/9.1.4/bin -B /usr/local/Cellar/postgresql/9.2.2/bin -d /usr/local/var/postgres91 -D /usr/local/var/postgres
我收到以下错误消息:
Performing Consistency Checks
-----------------------------
Checking current, bin, and data directories ok
There seems to be a postmaster servicing the old cluster.
Please shutdown that postmaster and try again.
Failure, exiting
我正在尝试停止服务器,但无法使升级命令正常工作。如何关闭旧的邮政局长?