Postgres dump using password on command line - Mailing list pgsql-admin

From Ankur Kaushik
Subject Postgres dump using password on command line
Date
Msg-id CALXoLqyOvKQtnq5-LOz7r9M2zSHCJM12AXk_jaxmtLTcK37vFw@mail.gmail.com
Whole thread Raw
Responses Re: Postgres dump using password on command line
List pgsql-admin

I have made script for the postgresql dump but unable to get dump only using command line as it require the password when execute the script.

list of database command require Password after enter

psql -l -t | cut -d'|' -f1 | sed -e 's/ //g' -e '/^$/d'

same for pg_dump 

pg_dump $i|gzip > $backupfile

pgsql-admin by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Problem after upgrade from 9.3.6 to 9.3.(7-8)
Next
From: Thomas Kellerer
Date:
Subject: Re: Postgres dump using password on command line