Re: RETURNING syntax for COPY

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: RETURNING syntax for COPY
Дата
Msg-id 518AA9A2.4030204@dunslane.net
обсуждение исходный текст
Ответ на Re: RETURNING syntax for COPY  (Jim Nasby <jim@nasby.net>)
Ответы Re: RETURNING syntax for COPY
Список pgsql-hackers
On 05/08/2013 03:23 PM, Jim Nasby wrote:
>> WITH new_data AS (
>>     COPY FROM ...
>>     RETURNING id, field_to_check
>> )
>

Why is this better than this, which you can do today?
   WITH new_data AS (        INSERT into ... FROM foreign_table_with_file_fdw RETURNING ...   )


The whole reason I abandoned trying to do this sort of thing with COPY 
was that I realized the FDW would provide what I wanted.

cheers

andrew



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

Предыдущее
От: Jim Nasby
Дата:
Сообщение: Re: about index inheritance
Следующее
От: Ryan Kelly
Дата:
Сообщение: Re: RETURNING syntax for COPY