From: Steven Lane <stevelcmc@mindspring.com>
To: pgsql-admin@postgresql.org
Subject: Better copy/import
Date: Mon, 23 Jul 2001 08:24:56 -0500
Message-ID: <v03007803b781d5ebe403@[65.15.153.184]> (raw)
In-Reply-To: <6901.995690204@sss.pgh.pa.us>
References: <Pine.LNX.4.33.0107201718230.29652-100000@visor.corp.nextbus.com>
<Pine.LNX.4.33.0107201718230.29652-100000@visor.corp.nextbus.com>
Hello all:
Sorry for the bad subject line on the last version of this post.
I'm trying to load about 10M rows of data into a simple postgres table. The
data is straightforward and fairly clean, but does have glitches every few
tens of thousands of rows. My problem is that when COPY hits a bad row it
just aborts, leaving me to go back, delete or clean up the row and try
again.
Is there any way to import records that could just skip the bad ones and
notify me which ones they are? Loading this much data is pretty
time-consuming, especially when I keep having to repeat it to find each new
bad row. Is there a better way?
-- sgl
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: stevelcmc@mindspring.com
Subject: Re: Better copy/import
In-Reply-To: <v03007803b781d5ebe403@[65.15.153.184]>
References: <Pine.LNX.4.33.0107201718230.29652-100000@visor.corp.nextbus.com> <v03007803b781d5ebe403@[65.15.153.184]>
* 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