Pavel Stehule <pavel.stehule@gmail.com> writes: > PLpgSQL FETCH documentation is has ref on SQL FETCH command. SQL FETCH > allows only int constants as count. PLpgSQL allows any expressions. In this > case documentation is not clear, and people can be messy - and apply SQL > FETCH limits on PLpgSQL FETCH.