Re: Copy command to load data into a PostgreSQL DB

From: Dimitri Fontaine <dim(at)dalibo(dot)com>
To: pgsql-general(at)postgresql(dot)org, stafford(at)marine(dot)rutgers(dot)edu
Subject: Re: Copy command to load data into a PostgreSQL DB
Date: 2006-11-17 21:08:09
Message-ID: 200611172208.12052.dim@dalibo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

Le vendredi 17 novembre 2006 21:46, Wm.A.Stafford a écrit :
> We can not figure out
> how to specify a non-printing character for the delimiter in the
> PostgreSQL copy command. If we use '\x05' as suggested by the
> Fastreader User guide. PostgreSQL complains "ERROR: COPY delimiter
> must be a single character".
>
> Any help or suggestions would be appreciated.

A recent migration from Informix made me write next version of pgloader, which
has several interesting features. The one of interest here is that it's able
to replace input data file separator when producing COPY data sent to
PostgreSQL.
One ascii character rarely found into data is §, and the code may allow you to
use non printable character (provided your editor allows you to type it into
the configuration file).

I've had some problems with my cvs pgfoundry credentials, hence the code is
temporally located into pgimport module:
http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/pgimport/pgimport/

I've made up a debian package, available at debian.dalibo.org repository:
http://debian.dalibo.org/unstable/
http://debian.dalibo.org/unstable/pgloader_2.0.2_all.deb
deb http://debian.dalibo.org/ unstable/

Hope this helps,
--
Dimitri Fontaine
http://www.dalibo.com/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Madison Kelly 2006-11-17 21:21:39 Re: Is there a PostgreSQL utility that is similiar to Oracles
Previous Message Wm.A.Stafford 2006-11-17 21:07:09 Is there a PostgreSQL utility that is similiar to Oracles sql loader?