Re: COPY command and skipping errors

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: COPY command and skipping errors
Дата
Msg-id 200509222041.j8MKfvj03938@candle.pha.pa.us
обсуждение исходный текст
Ответ на COPY command and skipping errors  ("Tomeh, Husam" <htomeh@firstam.com>)
Ответы Re: COPY command and skipping errors  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Список pgsql-admin
Tomeh, Husam wrote:
>
> Is there a way to skip errors during the run of the COPY command
> (loading data from a file to a table) like what Oracle SQL*Loader has?
> The reason I'm asking is that if the extract file from the mainframe has
> an invalid character, the COPY terminates and doesn't continue loading
> the rest of records.

No, but it is on the TODO list:

        o Allow COPY to report error lines and continue

          This requires the use of a savepoint before each COPY line is
          processed, with ROLLBACK on COPY failure.


--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

В списке pgsql-admin по дате отправления:

Предыдущее
От: Rajesh Kumar Mallah
Дата:
Сообщение: Re: Backing up several tables using pg_dump -t
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: COPY command and skipping errors