Search Postgresql Archives

Re: Question about COPY to/from

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Emi Lu <emilu@xxxxxxxxxxxxxxxxx> 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


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux