X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 5544811F681D for ; Wed, 5 Apr 2006 15:49:56 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 76267-04 for ; Wed, 5 Apr 2006 15:49:55 -0300 (ADT) X-Greylist: delayed 00:27:33.562764 by SQLgrey- Received: from mail.borderware.com (mail.borderware.com [207.236.65.231]) by postgresql.org (Postfix) with ESMTP id 3F5E611F6750 for ; Wed, 5 Apr 2006 15:49:54 -0300 (ADT) Message-ID: <443408FA.9000607@borderware.com> Date: Wed, 05 Apr 2006 14:14:18 -0400 From: Kevin Keith User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Error Handling with COPY command Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200604/59 X-Sequence-Number: 21228 I was wondering if anything has been implemented or is in the works in a future version - where when provided setting / flag / max number of errors - the COPY command would not fail on the error and continue loading data. It would then put the data that didn't load due to error in another location (i.e. an error data file, or an error table). When performing bulk data loads, it would be useful to have this type of feature, and avoid the need to vacuum the table after a large data load quits due to one error. I have worked with Oracle in the past, and it has a similar feature the SQL Loader. A threshold is set to x, and it will only stop after x number of errors were encountered. I have seen a few threads on this subject - I was wondering if this is / will be included in a future version, or whether the concept is dead because of its potential risks (i.e. the COPY command would be told to ignore errors and continue). Thanks, Kevin