Re: Syntax error in a large COPY

From: Dimitri Fontaine <dfontaine(at)hi-media(dot)com>
To: pgsql-general(at)postgresql(dot)org
Cc: Reg Me Please <regmeplease(at)gmail(dot)com>, Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: Syntax error in a large COPY
Date: 2007-11-07 10:10:40
Message-ID: 200711071110.42439.dfontaine@hi-media.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Le mercredi 07 novembre 2007, Reg Me Please a écrit :
> pgloader seems not that easy to use for a newbie like myself.
> Also because domentation seems too skinny.

Sorry about this, writting documentation in English is not that easy when it's
not one's natural language... I'll accept any comment/patch to the
documentation, the aim of it being to ease users life, of course ;)
http://pgloader.projects.postgresql.org/

Short story: you have to make a pgloader.conf file where you explain where is
the data file and what pgloader should expect into it (csv, text, what
delimiter and quotes, etc), then run
pgloader -Tc pgloader.conf

The -T option will TRUNCATE the configured table(s) before COPYing data into
it (them).

> In any case each "goto line, add lines, save, run" cycle requires about 10
> minutes on my PC. And the logs don't provide any useful detail.
> So, again, better logging would help in any case.

pgloader would certainly give this, at first run... It seems to me it is worth
the effort of reading the manual...
--
dim

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Reg Me Please 2007-11-07 10:17:50 Re: Syntax error in a large COPY
Previous Message Reg Me Please 2007-11-07 09:51:05 Re: Syntax error in a large COPY