Skip site navigation (1) Skip section navigation (2)

转发: Copy cmd error

From: <qinghuamail-postgresqlfans(at)yahoo(dot)com>
To: postgresql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: 转发: Copy cmd error
Date: 2007-08-28 02:15:24
Message-ID: 578352.81359.qm@web58114.mail.re3.yahoo.com (view raw or flat)
Thread:
Lists: pgsql-admin
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(at)yahoo(dot)com 写道: 日期: Mon, 27 Aug 2007 16:18:35 +0800 (CST)
发件人: <qinghuamail-postgresqlfans(at)yahoo(dot)com>
主题: [ADMIN] Copy cmd error
收件人: postgresql-admin <pgsql-admin(at)postgresql(dot)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!



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

Responses

pgsql-admin by date

Next:From: Kevin KempterDate: 2007-08-28 03:33:15
Subject: how to tell what tables have been vacuumed ?
Previous:From: Tom LaneDate: 2007-08-27 23:17:02
Subject: Re: how is pitr replay interruption time determined?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group