Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 7E958B5DC02 for ; Mon, 19 Sep 2011 22:32:47 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 91198-08 for ; Tue, 20 Sep 2011 01:32:41 +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 11110B5DBC4 for ; Mon, 19 Sep 2011 22:32:41 -0300 (ADT) Received: by tamriel.snowman.net (Postfix, from userid 1000) id 3A5032298A; Mon, 19 Sep 2011 21:32:41 -0400 (EDT) Date: Mon, 19 Sep 2011 21:32:41 -0400 From: Stephen Frost To: Jon Nelson Cc: pgsql-performance@postgresql.org Subject: Re: Postgres INSERT performance and scalability Message-ID: <20110920013241.GR12765@tamriel.snowman.net> References: <20110920005342.GO12765@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ElEgulhWJDonIdTi" 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: 21:31:08 up 229 days, 10:01, 13 users, load average: 0.14, 0.06, 0.01 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/283 X-Sequence-Number: 45059 --ElEgulhWJDonIdTi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline * Jon Nelson (jnelson+pgsql@jamponi.net) wrote: > Isn't the WAL basically COW? eh..? No.. The WAL is used to record what changes are made to the various files in the database, it certainly isn't an kind of "copy-on-write" system, where we wait until a change is made to data before copying it.. If you INSERT .. SELECT, you're going to get the real data in the WAL, and also in the heap of the new table.. Thanks, Stephen --ElEgulhWJDonIdTi 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) iEYEARECAAYFAk537TkACgkQrzgMPqB3kiiLDQCfdY1tAnRbN21DnEZF7tAakp1N 34EAoIDDaLwWFiVeEJ22fq+2s8wYYIzS =ljae -----END PGP SIGNATURE----- --ElEgulhWJDonIdTi--