Re: COPY FROM STDIN instead of INSERT

From: "Ilja Golshtein" <ilejn(at)yandex(dot)ru>
To: kleptog(at)svana(dot)org
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: COPY FROM STDIN instead of INSERT
Date: 2006-10-18 12:46:11
Message-ID: 45362213.000001.30844@tide.yandex.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Merlin Moncure 2006-10-18 13:03:45 Re: COPY FROM STDIN instead of INSERT
Previous Message Martijn van Oosterhout 2006-10-18 12:32:29 Re: COPY FROM STDIN instead of INSERT