I have a big compressed csv file (25gb) and I want to import it into PostgreSQL 9.5 version. Is there any fast way to import zip or qzip file into postgres without extractin
If you have a ZIP (.zip) instead of a GZIP (.gz) archive, you can use unzip -p to pipe the zipped file.
unzip -p
psql -p 5555 t -c "copy tp from program 'unzip -p /tmp/tp.csv.zip';"