Re: Importing undelimited files (Flat Files or Fixed-Length records)

From: Adrian Klaver <aklaver(at)comcast(dot)net>
To: pgsql-general(at)postgresql(dot)org
Cc: Bill Thoen <bthoen(at)gisnet(dot)com>
Subject: Re: Importing undelimited files (Flat Files or Fixed-Length records)
Date: 2008-06-20 00:35:03
Message-ID: 200806191735.04034.aklaver@comcast.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thursday 19 June 2008 3:54 pm, Bill Thoen wrote:
> I've got to load some large fixed-legnth ASCII records into PG and I was
> wondering how this is done. The Copy command looks like it works only
> with delimited files, and I would hate to have to convert these files to
> INSERT-type SQL to run them through psql.. Is there a way one can
> specify a table structure with raw field widths and then just pass it a
> flat file?

Take a look at:
http://pgfoundry.org/projects/pgloader/

Latest version has support for fixed length records.
--
Adrian Klaver
aklaver(at)comcast(dot)net

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Robert Treat 2008-06-20 04:26:16 Re: Losing data
Previous Message blackwater dev 2008-06-20 00:34:33 Re: finding firstname + lastname groups