Re: Question about COPY to/from

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Question about COPY to/from
Дата
Msg-id 21976.1141072917@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Question about COPY to/from  (Emi Lu <emilu@encs.concordia.ca>)
Список pgsql-general
Emi Lu <emilu@encs.concordia.ca> writes:
> However,  running "psql -d db -h ...   from STDID", I believe we are
> forced to type the password through prompt command line. Since our data
> population task is through cronjob, is there a way, we can run "COPY ...
> STDIN" by explicitly specifying password so that no human intervention?

Best way is to put the password in ~/.pgpass file belonging to the
account that runs the cron job.

            regards, tom lane

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

Предыдущее
От: "Marc G. Fournier"
Дата:
Сообщение: Re: majordomo unmaintained, postmaster emails ignored?
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: Breaking Path/Polygon Data into Pieces