Re: COPY FROM STDIN instead of INSERT

Поиск
Список
Период
Сортировка
От Ilja Golshtein
Тема Re: COPY FROM STDIN instead of INSERT
Дата
Msg-id 45362213.000001.30844@tide.yandex.ru
обсуждение исходный текст
Ответ на Re: COPY FROM STDIN instead of INSERT  (Martijn van Oosterhout <kleptog@svana.org>)
Список pgsql-general
>The reason why copy is faster is because it doesn't have to
>parse/plan/execute all the queries. In exchange you can't use
>expressions or joins to fill the table, only raw data.

In other words, COPY has no hidden catches, and I should go with it and don't worry.
Correct interpretation? ;)

>Binary may be slightly faster because the datum parsing can be
>partially skipped, but that's hardly much benefit over a text copy.

I know example where it is up to three times faster.
It depends on data.

--
Best regards
Ilja Golshtein

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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: COPY FROM STDIN instead of INSERT
Следующее
От: "Merlin Moncure"
Дата:
Сообщение: Re: COPY FROM STDIN instead of INSERT