#postgresql
Вопрос:
Я использую эту команду, чтобы остановить postgresl в macOS, как это:
~/source/retire on master! ⌚ 10:15:00
$ brew services stop postgresql ‹ruby-2.7.2›
Stopping `postgresql`... (might take a while)
==> Successfully stopped `postgresql` (label: homebrew.mxcl.postgresql)
(base)
но когда я проверяю процесс, он показывает, что процесс postgresql все еще работает:
~/source/retire on master! ⌚ 10:16:10
$ ps aux|grep postgres ‹ruby-2.7.2›
dolphin 72441 0.0 0.1 8819940 10412 ?? S 2:00PM 0:01.34 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Renderer).app/Contents/MacOS/Code Helper (Renderer) /Users/dolphin/.vscode/extensions/ckolkman.vscode-postgres-1.1.17/out/language/server.js --node-ipc --clientProcessId=72412
postgres 6412 0.0 0.0 4403696 8 ?? S 30Mar21 0:00.37 /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Versions/A/Support/mdworker -s mdworker-sizing -c MDSSizingWorker -m com.apple.mdworker.sizing
postgres 923 0.0 0.0 4366856 288 ?? S 30Mar21 0:00.11 /usr/libexec/secd
postgres 922 0.0 0.0 4396660 536 ?? S 30Mar21 0:00.80 /usr/sbin/distnoted agent
postgres 921 0.0 0.0 4428144 4720 ?? S 30Mar21 0:05.28 /usr/libexec/trustd --agent
postgres 920 0.0 0.0 4430108 1400 ?? S 30Mar21 0:00.35 /usr/libexec/lsd
postgres 919 0.0 0.0 4379124 824 ?? S 30Mar21 0:00.07 /usr/sbin/cfprefsd agent
dolphin 9782 0.0 0.0 4268324 716 s006 S 10:16AM 0:00.00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn postgres
postgres 8958 0.0 0.0 4524092 1812 ?? Ss 10:13AM 0:00.00 postgres: logical replication launcher
postgres 8957 0.0 0.0 4378296 1004 ?? Ss 10:13AM 0:00.00 postgres: stats collector
postgres 8956 0.0 0.0 4532284 2076 ?? Ss 10:13AM 0:00.00 postgres: autovacuum launcher
postgres 8955 0.0 0.0 4523900 5280 ?? Ss 10:13AM 0:00.01 postgres: walwriter
postgres 8954 0.0 0.0 4523900 2352 ?? Ss 10:13AM 0:00.03 postgres: background writer
postgres 8953 0.0 0.0 4523900 1100 ?? Ss 10:13AM 0:00.00 postgres: checkpointer
postgres 8945 0.0 0.0 4378296 924 ?? Ss 10:13AM 0:00.00 postgres: logger
postgres 8939 0.0 0.1 4524188 15692 ?? Ss 10:13AM 0:00.03 /Library/PostgreSQL/12/bin/postmaster -D/Library/PostgreSQL/12/data
(base)
почему процесс не завершился? что я должен сделать, чтобы остановить postgresql?