Re: COPY FROM STDIN instead of INSERT - Mailing list pgsql-general

From Ilja Golshtein
Subject Re: COPY FROM STDIN instead of INSERT
Date
Msg-id 45362213.000001.30844@tide.yandex.ru
Whole thread Raw
In response to Re: COPY FROM STDIN instead of INSERT  (Martijn van Oosterhout <kleptog@svana.org>)
List 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 by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: COPY FROM STDIN instead of INSERT
Next
From: "Merlin Moncure"
Date:
Subject: Re: COPY FROM STDIN instead of INSERT