Re: COPY vs INSERT - Mailing list pgsql-performance

From Jim C. Nasby
Subject Re: COPY vs INSERT
Date
Msg-id 20050506065129.GL88920@decibel.org
Whole thread Raw
In response to Re: COPY vs INSERT  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: COPY vs INSERT
Re: COPY vs INSERT
List pgsql-performance
On Wed, May 04, 2005 at 10:22:56PM -0400, Tom Lane wrote:
> Also, there is a whole lot of one-time-per-statement overhead that can
> be amortized across many rows instead of only one.  Stuff like opening
> the target table, looking up the per-column I/O conversion functions,
> identifying trigger functions if any, yadda yadda.  It's not *that*
> expensive, but compared to an operation as small as inserting a single
> row, it's significant.

Has thought been given to supporting inserting multiple rows in a single
insert? DB2 supported:

INSERT INTO table VALUES(
    (1,2,3),
    (4,5,6),
    (7,8,9)
);

I'm not sure how standard that is or if other databases support it.
--
Jim C. Nasby, Database Consultant               decibel@decibel.org
Give your computer some brain candy! www.distributed.net Team #1828

Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"

pgsql-performance by date:

Previous
From: Keith Worthington
Date:
Subject: Re: COPY vs INSERT
Next
From: Jona
Date:
Subject: Re: Bad choice of query plan from PG 7.3.6 to PG 7.3.9