Thread: pl/pgsql for loops

pl/pgsql for loops

From
Tomasz Myrta
Date:
Hello

I have some "for x in select ..." loops which compares current record
with previous ones. Is it possible to check if such loop is reaching
final pass?

Now, I check "found" variable after the loop and usually duplicate part
of it's code.

--
Regards,
Tomasz Myrta