Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 6169D2E333F for ; Tue, 5 Feb 2008 13:02:36 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 24756-02-7 for ; Tue, 5 Feb 2008 13:02:28 -0400 (AST) Received: from hi-media.com (9.140-14-84.ripe.coltfrance.com [84.14.140.9]) by postgresql.org (Postfix) with ESMTP id 9D3892E0280 for ; Tue, 5 Feb 2008 13:01:58 -0400 (AST) Received: from dim (LAubervilliers-151-11-28-79.w193-251.abo.wanadoo.fr [193.251.57.79]) by hi-media.com (Postfix) with ESMTP id 2A8A21880AC; Tue, 5 Feb 2008 17:59:29 +0100 (CET) From: Dimitri Fontaine Organization: Hi-Media To: pgsql-performance@postgresql.org Subject: Re: Benchmark Data requested Date: Tue, 5 Feb 2008 18:01:50 +0100 User-Agent: KMail/1.9.7 Cc: Simon Riggs , Richard Huxton , "Jignesh K. Shah" , Greg Smith References: <1202150236.4252.521.camel@ebony.site> <47A87B2E.7050205@archonet.com> <1202225207.4252.718.camel@ebony.site> In-Reply-To: <1202225207.4252.718.camel@ebony.site> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1859105.Nv4HRCDryA"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200802051801.52963.dfontaine@hi-media.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/46 X-Sequence-Number: 28588 --nextPart1859105.Nv4HRCDryA Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Le mardi 05 f=C3=A9vrier 2008, Simon Riggs a =C3=A9crit=C2=A0: > It runs a stream of COPY statements, so only first would be optimized > with the "empty table optimization". The number of rows per COPY statement is configurable, so provided you have= an=20 estimation of the volume to import (wc -l), you could tweak this number for= =20 lowering the stream (down to 1 COPY maybe)... But basically a COPY run should be kept in memory (and we're talking about= =20 high volumes here) and in case of error processing you'd want it not that=20 huge after all... =2D-=20 dim --nextPart1859105.Nv4HRCDryA Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBHqJaAlBXRlnbh1bkRAoZMAJ9S1psn6A/9K7KFr8szVJRPWaOw3QCeLRv2 vCwrzSV4kqRBk9uUwN+ZIKE= =KCdi -----END PGP SIGNATURE----- --nextPart1859105.Nv4HRCDryA--