pgpass password file is used when connecting postgresql, the normal position of ~ / .pgpass.
Really use some components must be used Shihai. Specific format:
hostname:port:database:username:password
Common usage is as follows:
# su - postgres
$ vi ~/.pgpass
#hostname:port:database:username:password
192.168.0.102:5432:postgres:postgres:rootroot
~ Permissions on .pgpass / 600 must be
$ chmod 0600 ~/.pgpass