How to stop PostgreSQL on Windows?
First, you want to find the PostgreSQL database directory, it can be something like C:\Program Files\PostgreSQL\10.4\data
. Then open Command Prompt and execute this command. Now use pg_ctl -D "C:\Program Files\PostgreSQL\9.6\data" stop
to stop these service.
BY Best Interview Question ON 15 Apr 2020