After reading the manual (8.0). I am not certain what real advantage there is to using a cursor over using a FOR loop. since FOR automatically uses a cursor anyway. They both avoid memory problems. Have I missed something or are there other reasons?
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных