FOR i IN REVERSE documentation error? - Mailing list pgsql-docs

From Norman Megill
Subject FOR i IN REVERSE documentation error?
Date
Msg-id 3BC11899.F5DE8D90@bostoninformation.com
Whole thread Raw
Responses Re: FOR i IN REVERSE documentation error?  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-docs
In the 7.2 documentation, Section 23.2.6.2, at
http://postgresql.crimelabs.net/devel-corner/docs/postgres/plpgsql-description.html

it shows the example:

  FOR i IN REVERSE 1..10 LOOP
     -- some expressions here
  END LOOP;

This loop does nothing.  I think it should be:

  FOR i IN REVERSE 10..1 LOOP
     -- some expressions here
  END LOOP;

which does work (10 iterations).

Note:  This error is also in the 7.1 documentation.  I tested
it in 7.1 but not 7.2.

Thank you,
Norm Megill

pgsql-docs by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Wrong manual info?
Next
From: Jerome Lessard
Date:
Subject: chown needed ..