pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: qinghuamail-postgresqlfans@yahoo.com
To: postgresql-admin <pgsql-admin@postgresql.org>
Subject: 转发:  Copy cmd error
Date: Tue, 28 Aug 2007 10:15:24 +0800 (CST)
Message-ID: <578352.81359.qm@web58114.mail.re3.yahoo.com> (raw)

hi, after reading the source of pgloader,i have a idea,use perl to create the flat file, and, when error,reject the row,seek the next line,continue to copy.

thanks everyone.

qinghuamail-postgresqlfans@yahoo.com 写道: 日期: Mon, 27 Aug 2007 16:18:35 +0800 (CST)
发件人: <qinghuamail-postgresqlfans@yahoo.com>
主题: [ADMIN] Copy cmd error
收件人: postgresql-admin <pgsql-admin@postgresql.org>

 hi,all

I use COPY cmd to import large data to database,but I have a question,

when  occured the first error, It always stopped, I need it to be continue,and reject the error rows to a file, how to do this?

thanks!



       
---------------------------------
雅虎邮箱,以安全著称,是值得信赖的邮箱专家! 

Message-ID: <578352.81359.qm@web58114.mail.re3.yahoo.com>
Permalink:  ../578352.81359.qm@web58114.mail.re3.yahoo.com/
Also on:    postgresql.org/message-id/578352.81359.qm@web58114.mail.re3.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: qinghuamail-postgresqlfans@yahoo.com
  Subject: Re: 转发:  Copy cmd error
  In-Reply-To: <578352.81359.qm@web58114.mail.re3.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox