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 85747D1B56B for ; Wed, 3 Sep 2003 23:12:28 +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 56691-06 for ; Wed, 3 Sep 2003 20:12:20 -0300 (ADT) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id D8A1DD1B949 for ; Wed, 3 Sep 2003 20:12:15 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id h83NBmX12468; Wed, 3 Sep 2003 19:11:48 -0400 (EDT) From: Bruce Momjian Message-Id: <200309032311.h83NBmX12468@candle.pha.pa.us> Subject: Re: Suggested patch to plpgsql docs (7.4beta) In-Reply-To: <200309031845.53722.dev@archonet.com> To: Richard Huxton Date: Wed, 3 Sep 2003 19:11:48 -0400 (EDT) Cc: pgsql-docs@postgresql.org X-Mailer: ELM [version 2.4ME+ PL106 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/13 X-Sequence-Number: 1969 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 larger 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 useful too. I figured everyone would assume that. I know of no language that will execute a loop listed as 10 ... 1. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073