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 1BF52D1B52C for ; Wed, 3 Sep 2003 17:46:42 +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 24641-10 for ; Wed, 3 Sep 2003 14:46:12 -0300 (ADT) Received: from anchor-post-31.mail.demon.net (anchor-post-31.mail.demon.net [194.217.242.89]) by svr1.postgresql.org (Postfix) with ESMTP id AFDAED1B56B for ; Wed, 3 Sep 2003 14:45:55 -0300 (ADT) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-31.mail.demon.net with esmtp (Exim 3.35 #1) id 19ubhb-000LpL-0V for pgsql-docs@postgresql.org; Wed, 03 Sep 2003 18:45:55 +0100 Received: from localhost (localhost.localdomain [127.0.0.1]) by mainbox.archonet.com (Postfix) with ESMTP id 7EE5D16F61 for ; Wed, 3 Sep 2003 18:45:54 +0100 (BST) Received: from client17.archonet.com (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id E0FD21623A for ; Wed, 3 Sep 2003 18:45:53 +0100 (BST) From: Richard Huxton To: pgsql-docs@postgresql.org Subject: Suggested patch to plpgsql docs (7.4beta) Date: Wed, 3 Sep 2003 18:45:53 +0100 User-Agent: KMail/1.5 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200309031845.53722.dev@archonet.com> X-Virus-Scanned: by AMaViS snapshot-20020531 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/4 X-Sequence-Number: 1960 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. -- Richard Huxton Archonet Ltd