title: Postgresql unable to start: No space left on device
body: <p>I have taken dump for the db and it make it run short of memory for Postgresql.
  I have then restarted postgresql but it failed to restart.And kept on giving me error</p>
  
  <pre><code>[FAIL] Starting PostgreSQL 9.4 database server: main[....] The PostgreSQL server failed to start. Please check the log output: ... failed!
   failed!
  </code></pre>
  
  <p>and in log file there were following lines</p>
  
  <pre><code>2017-05-05 05:49:25 UTC LOG:  could not close temporary statistics file "pg_stat_tmp/global.tmp": No space left on device
  2017-05-05 05:49:30 UTC LOG:  using stale statistics instead of current ones because stats collector is not responding
  2017-05-05 05:49:35 UTC LOG:  using stale statistics instead of current ones because stats collector is not responding
  2017-05-05 05:49:35 UTC LOG:  could not close temporary statistics file "pg_stat_tmp/db_0.tmp": No space left on device
  2017-05-05 05:49:35 UTC LOG:  could not write temporary statistics file "pg_stat_tmp/db_85990.tmp": No space left on device
  2017-05-05 05:49:35 UTC LOG:  could not close temporary statistics file "pg_stat_tmp/global.tmp": No space left on device
  2017-05-05 05:49:40 UTC LOG:  could not close temporary statistics file "pg_stat_tmp/db_0.tmp": No space left on device
  2017-05-05 05:49:40 UTC LOG:  could not close temporary statistics file "pg_stat_tmp/global.tmp": No space left on device
  2017-05-05 05:49:45 UTC LOG:  using stale statistics instead of current ones because stats collector is not responding
  </code></pre>
  
  <p>Please Help me to solve this issue if some one can.
  thanks.</p>