มีปัญหาเล็กน้อยกับ PostgreSQL บน Mac OS X 10.8.4 ฉันบังเอิญทำbrew rm postgresql --forceในขณะที่เซิร์ฟเวอร์ postgres กำลังทำงาน เมื่อฉันติดตั้งโดยใช้brew install postgresqlและรันpg_ctl -D /usr/local/var/postgres startฉันจะได้รับ:
pg_ctl: another server might be running; trying to start server anyway
server starting
FATAL:  lock file "postmaster.pid" already exists                                                                       
HINT:  Is another postmaster (PID 752) running in data directory "/usr/local/var/postgres"?
เมื่อฉันเรียกใช้ "ps -ef | grep postgres" ฉันจะได้รับ:
501   752   235   0 12:42PM ??         0:00.01 /usr/local/opt/postgresql/bin/postgres -D /usr/local/var/postgres -r /usr/local/var/postgres/server.log
501   754   752   0 12:42PM ??         0:00.00 postgres: checkpointer process       
501   755   752   0 12:42PM ??         0:00.34 postgres: writer process       
501   756   752   0 12:42PM ??         0:00.02 postgres: wal writer process       
501   757   752   0 12:42PM ??         0:00.01 postgres: autovacuum launcher process       
501   758   752   0 12:42PM ??         0:00.01 postgres: stats collector process       
501   945   452   0 12:58PM ttys000    0:00.00 grep postgres
เมื่อฉันพยายามหยุดเซิร์ฟเวอร์ด้วยpg_ctl stop -D /usr/local/var/postgres -m fastหรือpg_ctl -D /usr/local/var/postgres stop -miฉันได้รับ:
waiting for server to shut down........................................... Failed
pg_ctl: server does not shut down
แก้ไข
which pg_ctl
/usr/local/bin/pg_ctl
pg_ctl --version
pg_ctl (PostgreSQL) 9.2.4
ส่วนสำคัญของserver.log: https://gist.github.com/anonymous/6106182
pg_ctl -D /usr/local/var/postgres stop -m immediateได้รับการเพิ่มเติมใด ๆ กว่าที่อื่น ๆ ทั้งสองพยายาม?