Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id D731A9FB4C2 for ; Wed, 18 Jul 2007 08:33:03 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 27443-06 for ; Wed, 18 Jul 2007 08:32:52 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by postgresql.org (Postfix) with ESMTP id 529E99F9C6A for ; Wed, 18 Jul 2007 08:32:59 -0300 (ADT) Received: from osgiliath.mathom.us ([72.66.0.221]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JLD00E8IHESJD2H@vms046.mailsrvcs.net> for pgsql-performance@postgresql.org; Wed, 18 Jul 2007 06:32:53 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by osgiliath.mathom.us (Postfix) with ESMTP id 9A2897155B for ; Wed, 18 Jul 2007 07:32: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 U3pr3eDqye-H for ; Wed, 18 Jul 2007 07:32:51 -0400 (EDT) Received: by osgiliath.mathom.us (Postfix, from userid 1000) id 338D871575; Wed, 18 Jul 2007 07:32:51 -0400 (EDT) Date: Wed, 18 Jul 2007 07:32:50 -0400 From: Michael Stone Subject: Re: insert vs select into performance In-reply-to: <469D2E1B.1090100@ifi.uio.no> To: pgsql-performance@postgresql.org Mail-followup-to: pgsql-performance@postgresql.org Message-id: <20070718113249.GI12481@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> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/211 X-Sequence-Number: 25895 On Tue, Jul 17, 2007 at 11:01:15PM +0200, Thomas Finneid wrote: >Arjen van der Meijden wrote: >>Have you also tried the COPY-statement? Afaik select into is similar to >>what happens in there. > >No, because it only works on file to db or vice versa not table to table. I don't understand how the insert you described is table to table? Mike Stone