I need to import my psql dump into my fresh psql database. When I execute the following command, I get errors.
psql -U user new_database < filename.sql
Error I got:
ERROR: out of memory DETAIL: Cannot enlarge string buffer containing 0 bytes by 1208975751 more bytes.
How do I fix this. Also, is there any method to log the import process? My database size is nearly 1.5 GB.
Thanks.