Why is the "last;" still there? AFAICS it matters in the old coding
because of the while, but I don't think there is an equivalent looping
construct in the new code.
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services