Goto Postgres Conf file pg_hba.conf and add your Postgres user in the format of
host <user name> <ip/network> md5
For Example, create a new Postgres user odoo and add it section after Linux/UNIX domain.
Follow these steps:
# "local" is for Unix domain socket connections only, Here accepts all users and ips with peer auth
local all all peer
# Windows with new User odoo, all ips, with auth trust
host all odoo trust
# IPv4 local connections:
host all all 127.0.0.1/32 md5
you can change the auth method as md5/trust with a new user. The authentication method varies according to your needs. I can share with you the basic PSQL Windows deployment DOC.
WIndows Postgres Deployment
TO know more about the Postgres configuration file, please refer here
https://www.postgresql.org/docs/9.3/auth-pg-hba-conf.html
https://desktop.arcgis.com/en/arcmap/10.3/manage-data/gdbs-in-postgresql/configure-postgresql-accept-connections.htm