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 7E3263A5AD5 for ; Fri, 3 Dec 2004 20:59:48 +0000 (GMT) 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 44733-04 for ; Fri, 3 Dec 2004 20:59:42 +0000 (GMT) Received: from davinci.ethosmedia.com (server226.ethosmedia.com [209.128.84.226]) by svr1.postgresql.org (Postfix) with ESMTP id 846093A5AD3 for ; Fri, 3 Dec 2004 20:59:42 +0000 (GMT) Received: from [64.81.245.111] (account josh@agliodbs.com HELO temoku.sf.agliodbs.com) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.1.8) with ESMTP id 6741313; Fri, 03 Dec 2004 13:01:15 -0800 From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: pgsql-performance@postgresql.org Subject: Re: DB2 feature Date: Fri, 3 Dec 2004 13:02:46 -0800 User-Agent: KMail/1.6.2 Cc: Pailloncy =?iso-8859-1?q?Jean-G=E9rard?= References: <56141B8E-456B-11D9-9C9F-000A95DE2550@rilk.com> In-Reply-To: <56141B8E-456B-11D9-9C9F-000A95DE2550@rilk.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200412031302.46772.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.14 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO, UPPERCASE_25_50 X-Spam-Level: X-Archive-Number: 200412/87 X-Sequence-Number: 9462 Jean-Gerard, > The listing 2 example: > 1 =A0SELECT D_TAX, D_NEXT_O_ID > 2 =A0 =A0 INTO :dist_tax , :next_o_id > 3 =A0 =A0 FROM OLD TABLE ( UPDATE DISTRICT > 4 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 SET =A0D_NEXT_O_ID =3D D_NE= XT_O_ID + 1 > 5 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 WHERE D_W_ID =3D :w_id > 6 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 AND D_ID =3D :d_id > 7 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ) AS OT A lot of this is non-standard SQL, so I can't really tell what DB2 is doing= =20 here. Can you explain it? =2D-=20 =2D-Josh Josh Berkus Aglio Database Solutions San Francisco