I'm restoring a CSV
file to database with COPY
command. The csv file is bziped. I use this command:
bunzip2 -c -d online-20110923000001.csv.bz2 | psql -U user -h 127.0.0.1 -d testdb -c "COPY data FROM STDIN WITH CSV HEADER;"
After some time it stops with:
SSL error: ssl handshake failure
connection was lost to database
Log file shows:
2012-03-06 10:01:10 IRST STATEMENT: COPY data FROM STDIN WITH CSV HEADER;
2012-03-06 10:01:10 IRST LOG: SSL error: ssl handshake failure
2012-03-06 10:01:10 IRST CONTEXT: COPY data, line 8349702
2012-03-06 10:01:10 IRST STATEMENT: COPY data FROM STDIN WITH CSV HEADER;
2012-03-06 10:01:10 IRST LOG: could not receive data from client: Connection reset by peer
2012-03-06 10:01:10 IRST CONTEXT: COPY data, line 8349702
Could anyone help? Does psql
use SSL? How can I disable it? I restarted the command above and now it is working fine again.
I haven't changed any PostgreSQL configuration. I'm running PostgreSQL 8.4.10 on Debian 6.