X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 34850D1B94F for ; Thu, 4 Sep 2003 00:21:22 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 63247-05 for ; Wed, 3 Sep 2003 21:20:54 -0300 (ADT) Received: from cpc-gw2.cpc.net.au (unknown [210.9.248.93]) by svr1.postgresql.org (Postfix) with ESMTP id 88FE2D1B8B1 for ; Wed, 3 Sep 2003 21:20:48 -0300 (ADT) Received: from utiba.com (ser1.cpc.net.au [192.168.0.19]) by Utiba Mail Gateway (2.2.2) with ESMTP id h840Kkl11020; Thu, 4 Sep 2003 10:20:46 +1000 Received: from pc37.cpc.net.au (pc37.cpc.net.au [192.168.0.37]) by Utiba Mail Thingy (0.0.2) with ESMTP id h840Khx00340; Thu, 4 Sep 2003 10:20:43 +1000 Content-Type: text/plain; charset="iso-8859-1" From: Philip Yarra Organization: Utiba To: Bruce Momjian , Richard Huxton Subject: Re: Suggested patch to plpgsql docs (7.4beta) Date: Thu, 4 Sep 2003 10:20:42 +1000 User-Agent: KMail/1.4.3 Cc: pgsql-docs@postgresql.org References: <200309032311.h83NBmX12468@candle.pha.pa.us> In-Reply-To: <200309032311.h83NBmX12468@candle.pha.pa.us> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200309041020.42668.philip@utiba.com> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/14 X-Sequence-Number: 1970 On Thu, 4 Sep 2003 09:11 am, Bruce Momjian wrote: > Richard Huxton wrote: > > Addition of one paragraph to the end of section 39.7.3.4 "FOR (integer > > variant)" > > > > Note that this is basically a WHILE loop, so if the lower bound is larg= er > > than the upper bound the loop never executes it's contents: > > FOR i IN 10..1 LOOP > > RAISE NOTICE ''I do not raise a notice %'',i; > > END LOOP; > > > > I wasn't sure and had to check, so I assume others might find this usef= ul > > too. > > I figured everyone would assume that. I know of no language that will > execute a loop listed as 10 ... 1. Basic on my first computer suppported it, though the syntax was=20 FOR $i in 10 TO 1 STEP -1 PRINT $i NEXT=20 I think it is worth stating explicitly. The apostrophe in "it's" is incorre= ct=20 though. Regards, Philip Yarra.