Postgres dump using password on command line

Поиск
Список
Период
Сортировка
От Ankur Kaushik
Тема Postgres dump using password on command line
Дата
Msg-id CALXoLqyOvKQtnq5-LOz7r9M2zSHCJM12AXk_jaxmtLTcK37vFw@mail.gmail.com
обсуждение исходный текст
Ответы Re: Postgres dump using password on command line  (Thomas Kellerer <spam_eater@gmx.net>)
Список 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 по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Problem after upgrade from 9.3.6 to 9.3.(7-8)
Следующее
От: Thomas Kellerer
Дата:
Сообщение: Re: Postgres dump using password on command line