Re: Importing undelimited files (Flat Files or Fixed-Length records) - Mailing list pgsql-general

From ptjm@news-reader-radius.uniserve.com (Patrick TJ McPhee)
Subject Re: Importing undelimited files (Flat Files or Fixed-Length records)
Date
Msg-id _YudnUmYKrZLBcPVnZ2dnUVZ_rvinZ2d@posted.uniservecommunications
Whole thread Raw
In response to Importing undelimited files (Flat Files or Fixed-Length records)  (Bill Thoen <bthoen@gisnet.com>)
Responses Re: Importing undelimited files (Flat Files or Fixed-Length records)
List pgsql-general
In article <485AE3AA.3030700@gisnet.com>, Bill Thoen <bthoen@gisnet.com> 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?

pg_loader is supposed to handle this.

http://pgfoundry.org/projects/pgloader

--

Patrick TJ McPhee
North York  Canada
ptjm@interlog.com

pgsql-general by date:

Previous
From: Reece Hart
Date:
Subject: Re: partitioned table insert triggers
Next
From: Simon Riggs
Date:
Subject: Re: Forcibly vacating locks