COPY - Ignore Problems

Поиск
Список
Период
Сортировка
От Ron St-Pierre
Тема COPY - Ignore Problems
Дата
Msg-id 3FE78298.2030104@syscor.com
обсуждение исходный текст
Ответы Re: COPY - Ignore Problems
Re: COPY - Ignore Problems
Список pgsql-general
I wish to insert data into a table from a very large text file (from a
cron script) using COPY. However if the lName (TEXT), fName(TEXT),
workDate(DATE) already exist I don't want to insert data and just want
to move onto the next record. Is there any way I can tell my bash
script/COPY to ignore the case where the unique constraint exists
(lName,fName,workDate), and move on to the next record?

ps 7.4, debian stable
TIA
Ron


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Parser: parse error - please help...
Следующее
От: "Dann Corbit"
Дата:
Сообщение: Re: COPY - Ignore Problems