how to access postgres database in windows code example Example: access the postgres psql psql -h localhost -U username databasename