Re: INSERT or COPY: Which one? - Mailing list pgsql-novice

From Wim
Subject Re: INSERT or COPY: Which one?
Date
Msg-id Pine.LNX.4.53.0402180857160.5928@tyr.car.belbone.be
Whole thread Raw
In response to INSERT or COPY: Which one?  ("Colin Gillespie" <C.Gillespie@newcastle.ac.uk>)
List 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 by date:

Previous
From: Wim
Date:
Subject: Re: Big databases vs small databases
Next
From: "Crombleholme, Roy"
Date:
Subject: Re: Unable to connect to PostgreSQL server: