In a couple of cases, you are changing the type of the loop variable from Size to int. I would not expect such a change in a patch of this nature. If you have a reason to change it, please explain it (but I doubt the change is correct).
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных