Re: VLDB Features

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: VLDB Features
Дата
Msg-id 1197660423.1536.8.camel@dell.linuxdev.us.dell.com
обсуждение исходный текст
Ответ на Re: VLDB Features  (Hannu Krosing <hannu@skype.net>)
Ответы Re: VLDB Features  (Andrew Dunstan <andrew@dunslane.net>)
Re: VLDB Features  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Fri, 2007-12-14 at 14:48 +0200, Hannu Krosing wrote:
> How did you do it ?
> 
> Did you enchance COPY command or was it something completely new ?

By modifying COPY: COPY IGNORE ERRORS or some such would instruct COPY
to drop (and log) rows that contain malformed data. That is, rows with
too many or too few columns, rows that result in constraint violations,
and rows containing columns where the data type's input function raises
an error. The last case is the only thing that would be a bit tricky to
implement, I think: you could use PG_TRY() around the InputFunctionCall,
but I guess you'd need a subtransaction to ensure that you reset your
state correctly after catching an error.

-Neil




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

Предыдущее
От: Andrew Sullivan
Дата:
Сообщение: Re: Negative LIMIT and OFFSET?
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: VLDB Features