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