X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 4A0015333B for ; Fri, 6 May 2005 06:28:52 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 71865-09 for ; Fri, 6 May 2005 09:28:42 +0000 (GMT) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by svr1.postgresql.org (Postfix) with ESMTP id 15CF253322 for ; Fri, 6 May 2005 06:28:40 -0300 (ADT) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DTz1Z-0002zz-Pm for pgsql-performance@postgresql.org; Fri, 06 May 2005 11:21:33 +0200 Received: from srv.protecting.net ([212.126.218.242]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 06 May 2005 11:21:33 +0200 Received: from hf1122x by srv.protecting.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 06 May 2005 11:21:33 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-performance@postgresql.org From: Harald Fuchs Subject: Re: COPY vs INSERT Date: 06 May 2005 11:27:43 +0200 Organization: Linux Private Site Lines: 25 Message-ID: References: <20050506065129.GL88920@decibel.org> Reply-To: hf1122x@protecting.net Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: srv.protecting.net User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.007 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200505/58 X-Sequence-Number: 12222 In article , Dennis Bjorklund writes: > On Fri, 6 May 2005, Jim C. Nasby wrote: >> Has thought been given to supporting inserting multiple rows in a single >> insert? DB2 supported: >> >> INSERT INTO table VALUES( >> (1,2,3), >> (4,5,6), >> (7,8,9) >> ); >> >> I'm not sure how standard that is or if other databases support it. > The sql standard include this, except that you can not have the outer (). > So it should be > INSERT INTO table VALUES > (1,2,3), > (4,5,6), > (7,8,9); Since MySQL has benn supporting this idiom for ages, it can't be standard ;-)