PG Admin - Import from URL? - Mailing list pgsql-novice

From James David Smith
Subject PG Admin - Import from URL?
Date
Msg-id CAMu32ACUetBiOUyvrh21=ou+5vHxnOqiV0kjxypMzyhwJcWvJg@mail.gmail.com
Whole thread Raw
Responses Re: PG Admin - Import from URL?  (Andreas Kretschmer <akretschmer@spamfence.net>)
List pgsql-novice
Hi all,

Bit of a random query this, but I have the below query which creates a
table ready to import some data into it:

CREATE TABLE busroutes_raw(
id SEQUENCE PRIMARY KEY,
route VARCHAR,
run INTEGER,
sequence INTEGER,
stop_name VARCHAR,
loation_easting INTEGER,
location_northing INTEGER,
);

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?

Thanks

James

pgsql-novice by date:

Previous
From: Lew
Date:
Subject: Re: When to choose putting logic into PL/pgSQL and when to use an app server
Next
From: Andreas Kretschmer
Date:
Subject: Re: PG Admin - Import from URL?