从
official documentation:
It is also convenient to have a ~/.pgpass file to avoid regularly having to type in passwords. See 07001 for more information.