If you create a backup using pg_dump you can easily restore it in the following way:
- Open command line window.
- Go to Postgres bin folder. For example: cd "C:\ProgramFiles\PostgreSQL\9.5\bin"
- Enter the command to restore your database. ...
- Type password for your postgres user.
- Check the restore process.