Re: shell script to SQL statement: `pg_dump | psql -U`

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: shell script to SQL statement: `pg_dump | psql -U`
Дата
Msg-id 14352.1174405674@sss.pgh.pa.us
обсуждение исходный текст
Ответ на shell script to SQL statement: `pg_dump | psql -U`  ("filippo" <filippo2991@virgilio.it>)
Ответы Re: shell script to SQL statement: `pg_dump | psql -U`  ("filippo" <filippo2991@virgilio.it>)
Список pgsql-general
"filippo" <filippo2991@virgilio.it> writes:
> The problem with the current implementation is that sometime pd_dump
> and psql ask for password but I want to create the database copy
> without any user typing (it is a cron script).

Create a ~/.pgpass file for the user that runs the cron job.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: LISTEN/NOTIFY and python
Следующее
От: Ron Johnson
Дата:
Сообщение: Re: pg installation for dummies