Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id B0BE09FA4C3 for ; Mon, 23 Jul 2007 08:52:10 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 01355-07 for ; Mon, 23 Jul 2007 08:52:03 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by postgresql.org (Postfix) with ESMTP id EA55C9FA306 for ; Mon, 23 Jul 2007 08:52:07 -0300 (ADT) Received: from osgiliath.mathom.us ([72.66.0.221]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JLM002ENRMH6R49@vms044.mailsrvcs.net> for pgsql-performance@postgresql.org; Mon, 23 Jul 2007 06:51:53 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by osgiliath.mathom.us (Postfix) with ESMTP id 14E197059D for ; Mon, 23 Jul 2007 07:51:52 -0400 (EDT) Received: from osgiliath.mathom.us ([127.0.0.1]) by localhost (osgiliath.home.mathom.us [127.0.0.1]) (amavisd-new, port 10024) with LMTP id eAnVkntQzzm2 for ; Mon, 23 Jul 2007 07:51:51 -0400 (EDT) Received: by osgiliath.mathom.us (Postfix, from userid 1000) id 6A49F1F814; Mon, 23 Jul 2007 07:51:50 -0400 (EDT) Date: Mon, 23 Jul 2007 07:51:50 -0400 From: Michael Stone Subject: Re: insert vs select into performance In-reply-to: <469E664A.2010205@ifi.uio.no> To: pgsql-performance@postgresql.org Mail-followup-to: pgsql-performance@postgresql.org Message-id: <20070723115147.GJ12481@mathom.us> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-disposition: inline X-Virus-Scanned: Debian amavisd-new at mathom.us X-Pgp-Fingerprint: 53 FF 38 00 E7 DD 0A 9C 84 52 84 C5 EE DF 7C 88 References: <469D1AD3.9030004@ifi.uio.no> <469D1E4F.5090805@tweakers.net> <469D2E1B.1090100@ifi.uio.no> <20070718113249.GI12481@mathom.us> <469E664A.2010205@ifi.uio.no> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/288 X-Sequence-Number: 25972 On Wed, Jul 18, 2007 at 09:13:14PM +0200, Thomas Finneid wrote: >Michael Stone wrote: >>I don't understand how the insert you described is table to table? > >SELECT INTO is table to table, so is INSERT INTO SELECT FROM. I could have sworn that at least one of the examples you gave didn't have any select. Doesn't really matter. Mike Stone