Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 8C564B5DC03 for ; Mon, 19 Sep 2011 21:53:48 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 29135-05 for ; Tue, 20 Sep 2011 00:53:42 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from tamriel.snowman.net (tamriel.snowman.net [72.66.115.51]) by mail.postgresql.org (Postfix) with ESMTP id 59FD7B5DC02 for ; Mon, 19 Sep 2011 21:53:42 -0300 (ADT) Received: by tamriel.snowman.net (Postfix, from userid 1000) id 228C72298A; Mon, 19 Sep 2011 20:53:42 -0400 (EDT) Date: Mon, 19 Sep 2011 20:53:42 -0400 From: Stephen Frost To: Igor Chudov Cc: pgsql-performance@postgresql.org Subject: Re: Postgres INSERT performance and scalability Message-ID: <20110920005342.GO12765@tamriel.snowman.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="w1WLgcEPVIWvtHEy" Content-Disposition: inline In-Reply-To: X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/2.6.32-5-amd64 (x86_64) X-Uptime: 20:49:50 up 229 days, 9:19, 13 users, load average: 0.00, 0.01, 0.00 User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201109/279 X-Sequence-Number: 45055 --w1WLgcEPVIWvtHEy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Igor, * Igor Chudov (ichudov@gmail.com) wrote: > Would the time that it takes, differ a great deal, depending on whether the > table has only 100,000 or 5,000,000 records? Yes, because PostgreSQL is going to copy the data. If you don't need or want it to be copied, just use a view. I've never heard of any relational database implementing 'copy on write' type semantics, if that's what you're asking about. Databases, unlike applications with code in memory that's constantly copied, are typically focused around minimizing duplication of data (since it all has to end up on disk at some point). Not much point in having the overhead of COW for that kind of environment, I wouldn't think. Thanks, Stephen --w1WLgcEPVIWvtHEy Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAk535BYACgkQrzgMPqB3kiibdwCgjqX7DVhdbmRdAXAK5FSGm02Q nRQAn3tUWdf11gNozsSDfnBn0h6LlE5r =7B7x -----END PGP SIGNATURE----- --w1WLgcEPVIWvtHEy--