How to fix FATAL: out of memory in PostgreSQL | DevErrors