title: Broken pipe error when restoring data to the database
body: <p>Why do I get a broken pipe error in postgresql when restoring a database?</p>
  
  <pre><code>cat test_qa_201501221645_IST.sql.gz|gunzip|psql -d sample_qa_new
  </code></pre>
  
  <p>Where <code>test_qa_201501221645_IST.sql.gz</code> is the file name, and 
  <code>sample_qa_new</code> is the database name.</p>