Re: bulk inserts

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Sam Mason <sam(at)samason(dot)me(dot)uk>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: bulk inserts
Date: 2009-09-29 16:17:51
Message-ID: 11029.1254241071@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Sam Mason <sam(at)samason(dot)me(dot)uk> writes:
> On Tue, Sep 29, 2009 at 08:45:55AM -0700, Alan Hodgson wrote:
>> I think a big reason is also that the client can stream the data without
>> waiting for a network round trip ack on every statement.

> I don't think so. I'm pretty sure you can send multiple statements in a
> single round trip.

You can, but that doesn't scale to megabytes of data (at least not
well).

I think the big points are elimination of per-row network and
transaction commit overhead ... but there are some other optimizations
in the COPY path too.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Kelly Jones 2009-09-29 16:18:50 Upgrade db format without older version of PostgreSQL
Previous Message Alan Hodgson 2009-09-29 16:11:19 Re: bulk inserts