how to start and stop postgresql server in windows 10 code example Example: stop psql server windows pg_ctl -D "C:\Program Files\PostgreSQL\9.6\data" stop