From: | Andreas Kretschmer <akretschmer(at)spamfence(dot)net> |
---|---|
To: | pgsql-novice(at)postgresql(dot)org |
Subject: | Re: PG Admin - Import from URL? |
Date: | 2012-03-15 16:04:44 |
Message-ID: | 20120315160443.GA19151@tux |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
James David Smith <james(dot)david(dot)smith(at)gmail(dot)com> wrote:
> I then import the data as below:
>
> COPY busroutes_raw from 'C:/Program Files
> (x86)/PostgreSQL/8.4/data/BusRoutes.csv' DELIMITERS ',' CSV;
>
> But I wonder whether it is possible to put a URL as the origin of the
> file rather than a path?
Sure, use tools like wget or other to fetch the file from internet and
raise it to stdout, pipe that to psql -c "\copy ... from 'stdin'"
(something like that, untestet)
Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknown)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°
From | Date | Subject | |
---|---|---|---|
Next Message | Binand Sethumadhavan | 2012-03-15 16:17:56 | SEQUENCE data type (was: Re: PG Admin - Import from URL?) |
Previous Message | James David Smith | 2012-03-15 15:08:16 | PG Admin - Import from URL? |