I have the following processes running per ps aux | grep postgres
postgres 8720 0.0 0.0 2492848 5652 ?? SN 2:33PM
0:00.04 /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Versions/A/Support/mdworker -s mdworker -c MDSImporterWorker -m com.apple.mdworker.shared postgres 495 0.0 0.0 2514428 1776 ?? S 1:57PM 0:00.07 /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Versions/A/Support/mdflagwriter postgres 491 0.0 1.0 2669764 166180 ?? Ss 1:57PM
0:10.31 com.apple.IconServicesAgent postgres 490 0.0 0.0 2505832 2884 ?? Ss 1:57PM 0:00.07 /usr/libexec/xpcd postgres 485 0.0 0.0 2514284 1284 ?? S 1:57PM 0:00.07 /usr/sbin/cfprefsd agent postgres 484 0.0 0.0 2536788
1708 ?? S 1:57PM 0:00.06 /usr/sbin/distnoted agent postgres
479 0.0 0.0 2508256 1100 ?? Ss 1:57PM 0:00.06 /sbin/launchd postgres 427 0.0 0.0 2493792 608 ?? Ss 1:55PM 0:00.02 postgres: stats collector process postgres 426 0.0 0.0 2654624 2208 ?? Ss 1:55PM 0:00.02 postgres: autovacuum launcher process postgres 425 0.0 0.0 2646300 764 ?? Ss 1:55PM 0:00.03 postgres: wal writer process postgres 424 0.0 0.0 2638108 1608 ?? Ss 1:55PM 0:00.07 postgres: writer process postgres 423
0.0 0.0 2638108 836 ?? Ss 1:55PM 0:00.00 postgres: checkpointer process postgres 419 0.0 0.0 2493792
500 ?? Ss 1:55PM 0:00.00 postgres: logger process postgres 85 0.0 0.1 2638108 13844 ?? Ss 1:55PM 0:00.04 /Library/PostgreSQL/9.3/bin/postmaster -D/Library/PostgreSQL/9.3/data Username 8910 0.0 0.0 2432784 612 s003 R+ 2:35PM
0:00.00 grep postgres
I want them dead!
But killall postgres gives me:
No matching processes belonging to you were found
I understand I need to use:
kill -INT `head -1 /usr/local/pgsql/data/postmaster.pid`
But I do not understand this command.
Guidance is appreciated. Long frustrating morning!
kill -9 8720
(where8720
is the PID)? Note that this may result in data loss since the OS will kill the process in a very unkind manner. – CmdrMoozy