COPY FROM WHEN condition

Поиск
Список
Период
Сортировка
От Surafel Temesgen
Тема COPY FROM WHEN condition
Дата
Msg-id CALAY4q_DdpWDuB5-Zyi-oTtO2uSk8pmy+dupiRe3AvAc++1imA@mail.gmail.com
обсуждение исходный текст
Ответы Re: COPY FROM WHEN condition
Re: COPY FROM WHEN condition
Список pgsql-hackers

Hello,

Currently we can not moves data from a file to a table based on some condition on a certain column but I think there are many use case for it that worth supporting. Attache is a patch for escaping a row that does not satisfy WHEN condition from inserting into a table and its work on the top of commit b68ff3ea672c06

and the syntax is

COPY table_name [ ( column_name [, ...] ) ]

FROM { 'filename' | PROGRAM 'command' | STDIN }

[ [ WITH ] ( option [, ...] ) ]

[ WHEN condition ]

comment ?

Regards

Surafel

Вложения

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

Предыдущее
От: Kyotaro HORIGUCHI
Дата:
Сообщение: Re: [HACKERS] WAL logging problem in 9.4.3?
Следующее
От: Christoph Moench-Tegeder
Дата:
Сообщение: Re: COPY FROM WHEN condition