Is there any other ways to still insert same amount of data and avoid this OOM error ?
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных