Re: Is there a PostgreSQL utility that is similiar to Oracles

From: Madison Kelly <linux(at)alteeve(dot)com>
To: stafford(at)marine(dot)rutgers(dot)edu
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Is there a PostgreSQL utility that is similiar to Oracles
Date: 2006-11-17 21:21:39
Message-ID: 455E27E3.2060104@alteeve.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Wm.A.Stafford wrote:
> We are trying to load our PostgreSQL DB with data that contains many
> corrupted rows. I recall that sql loader will skip corrupted rows and
> keep going. We are using the PostgreSQL copy command to load and it
> just gives up when the first corrupted row is encountered.
>
> Thanks in a advance,
> -=bill

This might not help, but I don't know of a tool to do what you want (I
am not an experts, others here may).

How difficult would it be to write a script (perl?) to read in the dump
file and translate all of the COPY... calls into individual INSERTs with
autocommit on and just log the bad rows? Sorry if this doesn't help. :)

Madi

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dimitri Fontaine 2006-11-17 21:28:27 Re: Is there a PostgreSQL utility that is similiar to Oracles sql loader?
Previous Message Dimitri Fontaine 2006-11-17 21:08:09 Re: Copy command to load data into a PostgreSQL DB