Also you could create a protected file eg pgCONFIDENTIAL with the lines yourusername yourpasswd and do cat pgCONFIDENTIAL | pg_dump -u yourdb > dbdump.sql
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных