Re: Copy command to load data into a PostgreSQL DB

Поиск
Список
Период
Сортировка
От Dimitri Fontaine
Тема Re: Copy command to load data into a PostgreSQL DB
Дата
Msg-id 200611172208.12052.dim@dalibo.com
обсуждение исходный текст
Ответ на Copy command to load data into a PostgreSQL DB  ("Wm.A.Stafford" <stafford@marine.rutgers.edu>)
Список 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/

Вложения

В списке pgsql-general по дате отправления:

Предыдущее
От: "Wm.A.Stafford"
Дата:
Сообщение: Is there a PostgreSQL utility that is similiar to Oracles sql loader?
Следующее
От: Madison Kelly
Дата:
Сообщение: Re: Is there a PostgreSQL utility that is similiar to Oracles