From: Edward Chase <echase@homer.providence.edu>
To: pgsql-admin@postgresql.org
Subject: Re: COPY
Date: Fri, 31 Mar 2000 13:05:07 -0500
Message-ID: <3.0.6.32.20000331130507.0083c710@homer.providence.edu> (raw)
In-Reply-To: <8142BE56BFF7D311BC4E00B0D0219AF57787@mail.stryker.ca.1.67. 10.in-addr.arpa>
Not knowing exactly what your doing and what psql is considering "bad",
have you thought about pre-processing your files first and eliminating
these bad records before importing them into your database?
At 10:28 AM 3/31/2000 -0500, Ralf wrote:
>
>Hello,
>
> I think I asked this question before but will try again.
>I deal a lot with importing text files into my psql database and
>quite often there are bad records in those files. 'COPY' will
>abort the process whenever it encounters bad data. Is there any
>way to make 'COPY' skip bad records and continue with the import
>process rather than abort the entire thing?
>
>Thanks in advance.
---------------------------------------------------------------
Edward F. Chase III | echase@providence.edu
Providence College | http://www.providence.edu
Computer Services | http://studentweb.providence.edu
Providence, RI 02918 |
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: echase@homer.providence.edu
Subject: Re: COPY
In-Reply-To: <3.0.6.32.20000331130507.0083c710@homer.providence.edu>
References: <3.0.6.32.20000331130507.0083c710@homer.providence.edu>
* 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