Postgres on Windows

Postgres files are generally stored at the following location

C:\Program Files\PostgreSQL

To check the status of the server, use the Windows Services utility. To access Services,

Press Windows + R
Enter services.msc

CLI Control

pg_ctl can be used to initialize, start, stop or control a Postgres server. Note you will need to set the environment variable PGData, using the following command

set PGDATA=C:\Program Files\PostgreSQL\14\data

start

pg_ctl start