Re: automating csv import

From: John Sidney-Woollett <johnsw(at)wardbrook(dot)com>
To: walker1145 <walker1145(at)qwest(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: automating csv import
Date: 2005-02-16 14:24:24
Message-ID: 42135798.1040008@wardbrook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Have you tried creating a script to do the import operation, and then
scheduling it to run periodically using cron (on unix) or at (on windows)?

Seems like that is all you need to do...

John Sidney-Woollett

walker1145 wrote:

> I get a dump of some data in a CSV file and am able to import it
> manually using psql and \COPY without a problem. However I now need to
> automate this as it will need to be done every 2 hours 24/7. I've tried
> looking through the archives and nothing seems to touch upon this
> completely and the documentation doesn't mention this or if it does it
> seems to be some what obscure (at least to me). Does anyone have any
> suggestions?
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David Fetter 2005-02-16 14:48:33 Re: insert data from an microsoft excel
Previous Message Scott Marlowe 2005-02-16 14:18:01 Re: Lost rows/data corruption?