Re: COPY versus INSERT

Поиск
Список
Период
Сортировка
От Doug McNaught
Тема Re: COPY versus INSERT
Дата
Msg-id m3addpftas.fsf@varsoon.wireboard.com
обсуждение исходный текст
Ответ на COPY versus INSERT  ("Jay O'Connor" <joconnor@cybermesa.com>)
Список pgsql-general
"Jay O'Connor" <joconnor@cybermesa.com> writes:

> I'm loading a database with a lot of data from an external source (I'm
> convertin all my data to postgresql)
>
> Right now I'm just connecting to the database and issuing a whole lot of
> INSERTS and this is taking longer than I had planned.
>
> Would it be faster to just dump my database ina tab delimited format and
> use a COPY FROM or psql /copy command?

Most definitely--the SQL parser and planner have to be run for each
INSERT.  The parsing done by COPY is much simpler.

-Doug

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

Предыдущее
От: "Mirco Tamburini"
Дата:
Сообщение: Heterogeneous service (like Oracle or Ms SQL Server)
Следующее
От: Együd Csaba
Дата:
Сообщение: Re: Schedule Jobs in Postgres