Using below command to restore the database
Restoration command:
cat my_db_dump.sql.gz | gunzip | psql -d new_database -U my_username
Note: my_db_dump.sql.gz size is 4.5 GB, (extracted size will be around 70 GB)
Getting the below exception (after executing above restoration command)
gunzip: stdin: unexpected end of file
ERROR: unterminated quoted string at or near "'\x3c3f78
(hexadecimal junks removed)
LINE 1: SELECT pg_catalog.lowrite(0, '\x3c3f786d6c2076657273696f6e3d...
gunzip -c my_db_dump.sql.gz | psql ...
?