This is best described in here
However, I find following worth a note on top of the article.
- C:\Program Files\PostgreSQL\9.5\data\pg_hba.conf
Detailed help here
# Switch to trust of each when to bypass postgres password
# IPv4 local connections:
host all all 127.0.0.1/32 md5
#host all all 127.0.0.1/32 trust
# IPv6 local connections:
host all all ::1/128 md5
#host all all ::1/128 trust