Re: INSERT or COPY: Which one?

Поиск
Список
Период
Сортировка
От Wim
Тема Re: INSERT or COPY: Which one?
Дата
Msg-id Pine.LNX.4.53.0402180857160.5928@tyr.car.belbone.be
обсуждение исходный текст
Ответ на INSERT or COPY: Which one?  ("Colin Gillespie" <C.Gillespie@newcastle.ac.uk>)
Список pgsql-novice
Hi Colin,

COPY is much faster that INSERT, although INSERT is safer. I think that
you can speed up the INSERT by disabling autocommit...


Cheers!
Wim

On Mon, 16 Feb 2004, Colin Gillespie wrote:

> Dear All,
>
> I which to insert text (more than 1000 lines) into a single cell of my table, should I use COPY here or INSERT?
>
> My reading seems to suggest that you would use COPY for mulitple INSERTs, but when inserting alot of data into one
cell,INSERT is fine. Is this correct? 
>
> Thanks
>
> Colin
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>

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

Предыдущее
От: Wim
Дата:
Сообщение: Re: Big databases vs small databases
Следующее
От: "Crombleholme, Roy"
Дата:
Сообщение: Re: Unable to connect to PostgreSQL server: