Re: Ignore when using COPY FROM

From: Fredrick Bartlett <palmtreefrb(at)earthlink(dot)net>
To: Matthew Kennedy <mkennedy(at)hssinc(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Ignore when using COPY FROM
Date: 2000-08-30 16:37:00
Message-ID: 39AD382C.B6151D72@earthlink.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Yes, I have same problem. This functionality is "almost" standard,
and
found on other RDBMS. How do new features get added to the todo list's.
Where can I view the current todo list?

Fredrick

Matthew Kennedy wrote:

> I have a ton of data in a text delimited file from an old legacy system.
> When uploading it into postgres, I'd do something like this:
>
> COPY stuff FROM 'stuff.txt' USING DELIMITERS = '|';
>
> The problem is some of the rows in stuff.txt may not conform to the
> stuff table attributes (duplicate keys, for example). The command above
> terminates with no change to the table stuff when it encounters an error
> in stuff.txt. Is there a way to have postgres ignore erroneous fields
> but keep information about which fields weren't processed. I believe
> Oracle has some support for this through an IGNORE clause.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Fabrice Scemama 2000-08-30 17:00:16 Re: postgresql 7 user passwords dont work ?????
Previous Message Eric Webber 2000-08-30 16:28:40 postgresql 7 user passwords dont work ?????