Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id BAB9D9FA06A for ; Mon, 27 Aug 2007 12:54:19 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 66350-05 for ; Mon, 27 Aug 2007 12:54:11 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from hi-media.com (9.140-14-84.ripe.coltfrance.com [84.14.140.9]) by postgresql.org (Postfix) with ESMTP id CCD049F9FE8 for ; Mon, 27 Aug 2007 12:54:10 -0300 (ADT) Received: from dim (LAubervilliers-151-11-28-79.w193-251.abo.wanadoo.fr [193.251.57.79]) by hi-media.com (Postfix) with ESMTP id 5F1351880E3; Mon, 27 Aug 2007 17:51:20 +0200 (CEST) From: Dimitri Fontaine Organization: Hi-Media To: pgsql-admin@postgresql.org, qinghuamail-postgresqlfans@yahoo.com Subject: Re: {Spam} Copy cmd error Date: Mon, 27 Aug 2007 17:53:59 +0200 User-Agent: KMail/1.9.7 References: <972942.48089.qm@web58108.mail.re3.yahoo.com> In-Reply-To: <972942.48089.qm@web58108.mail.re3.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart148532126.GtH98MhZgr"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200708271754.02347.dfontaine@hi-media.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.077 tagged_above=0 required=5 tests=AWL=-0.024, BAYES_50=0.001, RDNS_DYNAMIC=0.1 X-Spam-Level: X-Archive-Number: 200708/330 X-Sequence-Number: 26661 --nextPart148532126.GtH98MhZgr Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, Le lundi 27 ao=C3=BBt 2007, qinghuamail-postgresqlfans@yahoo.com a =C3=A9cr= it=C2=A0: > 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? You can try out pgloader, which has been made for this kind of requirements. http://pgloader.projects.postgresql.org/ Please consider downloading the later version available, which is 2.2.1 as = of=20 now. Regards, =2D-=20 dim --nextPart148532126.GtH98MhZgr Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBG0vOalBXRlnbh1bkRAp9pAJ4wCGyGGuCAESP9b/zXMK4iWIHPrwCgqjGy 06YnQoqQwTzxd5e8A8qG6is= =EcjH -----END PGP SIGNATURE----- --nextPart148532126.GtH98MhZgr--