Re: Standard Input Passwords?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Standard Input Passwords?
Дата
Msg-id 19154.1059685736@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Standard Input Passwords?  ("Mike Miller" <temp6453@hotmail.com>)
Список pgsql-admin
"Mike Miller" <temp6453@hotmail.com> writes:
> pg_dump -h server -Of ./temp.dmp -u username << END
> username
> password
> END

> This worked until I upgraded to 7.3.3 from 7.1.3.  Any ideas why this would
> happen and how to work around it to get automatic scriped dumps?

This is a deliberate change for security purposes: it wants to read the
password from /dev/tty not stdin.

I'd recommend that you abandon this approach and start keeping your
passwords in ~/.pgpass, instead.  See
http://developer.postgresql.org/docs/postgres/libpq-pgpass.html

            regards, tom lane

В списке pgsql-admin по дате отправления:

Предыдущее
От: "Mike Miller"
Дата:
Сообщение: Standard Input Passwords?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: LargeObjectDrop and simple_heap_delete - Are these errors normal?