Re: imorting csv files into postgres - Mailing list pgsql-interfaces

From Lamar Owen
Subject Re: imorting csv files into postgres
Date
Msg-id 3A67666B.423F14CF@wgcr.org
Whole thread Raw
In response to imorting csv files into postgres  (mike <mike@cyborg-group.com>)
List pgsql-interfaces
Adam Lang wrote:
> Yeah, but he doesn't want to have to create the table before hand, he wants
> postgresql to do all the work. ;)
> The only way that I know of to do that is write a program and feed it the
> CSV file... but in the program it is going to need to create the table.

I have such a script for AOLserver Tcl that does all the work.  But it
requires a working AOLserver/PostgreSQL installation, which will take
longer to set up than a simple perl script would take to be written. 
The hard part is the CSV parsing -- creating the table and filling in
the data is easy in comparison, especially in the Pg perl interface.
--
Lamar Owen
WGCR Internet Radio
1 Peter 4:11


pgsql-interfaces by date:

Previous
From: Barry Lind
Date:
Subject: Re: [PATCHES] Re: Fixes and enhancements to JDBC driver (take 2)
Next
From: Cedar Cox
Date:
Subject: Re: [RFC] Proposed split of -interfaces list ...