How to fix Program limit exceeded in PostgreSQL | DevErrors