Re: Copy From & Insert UNLESS

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Copy From & Insert UNLESS
Дата
Msg-id 43E79D6A.1060706@agliodbs.com
обсуждение исходный текст
Ответ на Re: Copy From & Insert UNLESS  (James William Pye <pgsql@jwp.name>)
Ответы Re: Copy From & Insert UNLESS  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Re: Copy From & Insert UNLESS  (James William Pye <pgsql@jwp.name>)
Список pgsql-hackers
James,

Are you sure that a new type of constraint is the way to go for this? 
It doesn't solve our issues in the data warehousing space.  The spec we 
started with for "Error-tolerant COPY" is:

1) It must be able to handle parsing errors (i.e. bad char set);
2) It must be able to handle constraint violations;
3) It must output all row errors to a log or "errors" table which makes 
it possible to determine which input row failed and why;
4) It must not slow significantly (like, not more than 15%) the speed of 
bulk loading.

On that basis, Alon started working on a low-level error trapper for 
COPY.   It seems like your idea, which would involve a second constraint 
check, would achieve neigher #1 nor #4.

--Josh Berkus


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: slow information schema with thausand users, seq.scan pg_authid
Следующее
От: Tom Lane
Дата:
Сообщение: Re: slow information schema with thausand users, seq.scan pg_authid