The file.pgpassin a user's home directory can contain passwords to be used if the connection requires a password (and no password has been specified otherwise). On Microsoft Windows the file is named%APPDATA%\postgresql\pgpass.conf(where%APPDATA%refers to the Application Data subdirectory in the user's profile).