title: Postgres SSL error
body: <p>I'm trying to run a Drupal migration via SSH and drush (a command line shell), copying data from a postgres database to mysql.</p>
  
  <p>It works fine for a while (~5 mins or so), but then I get the error:</p>
  
  <pre><code>SQLSTATE[HY000]: General error: 7 SSL [error] SYSCALL error: EOF detected
  </code></pre>
  
  <p>The postgres database connection seems to have gone, and I just get errors:</p>
  
  <pre><code>SQLSTATE[HY000]: General error: 7 no [error] connection to the server
  </code></pre>
  
  <p>It works fine locally, so I think the problem must be with postgres and running a script over SSH - but googling these errors returns nothing useful. Does anyone know what could be causing this?</p>