PostgreSQL on Windows

Installation (no admin required)

https://www.enterprisedb.com/download-postgresql-binaries

postgres -V
psql -V
initdb -D $env:PG_HOME\data --username=postgres --auth=trust -E utf8
pg_ctl -D $env:PG_HOME\data -l $env:PG_HOME\log.txt start

Additional Commands

pg_ctl -D $env:PG_HOME\data stop
cmd.exe /c chcp 1252
psql -U <username>

databases

Back