title: Can't start postgresql replication
body: <p>We have postgresql replication on different server. So today I was doing some optimization on replication cluster <code>postgresql.conf</code></p>
  
  <p>After doing replication, I restarted postgresql with this command:</p>
  
  <pre><code>pg_ctlcluster 9.2 main2 restart
  </code></pre>
  
  <p>But instead of restarting, it gave this error:</p>
  
  <pre><code>The PostgreSQL server failed to start. Please check the log output.
  </code></pre>
  
  <p>And checking the log, I see this:</p>
  
  <pre><code>2015-06-16 12:18:16 EEST [10655]: [2-1] LOG:  received smart shutdown request
  2015-06-16 12:18:16 EEST [10661]: [2-1] FATAL:  terminating walreceiver process due to administrator command
  2015-06-16 12:18:16 EEST [10658]: [1-1] LOG:  shutting down
  2015-06-16 12:18:16 EEST [10658]: [2-1] LOG:  database system is shut down
  </code></pre>
  
  <p>Checking log now it shows the last restart log, but log does not update, when I try to start server. It says check the log, but there is no new information, even if I try to start server again.</p>
  
  <p>P.S. Do I need to do anything on master?</p>
  
  <p><strong>Update</strong></p>
  
  <p>Changing <code>postgresql.conf</code> settings back, started replication. But from error it is hard to tell what was wrong.</p>
  
  <p>here are settings I changed (after they changing, they were the same as on master. When I commented it, only then I could start replication):</p>
  
  <pre><code>shared_buffers = 1536MB
  effective_cache_size = 3072MB
  checkpoint_segments = 15
  checkpoint_completion_target = 0.9
  autovacuum = on 
  track_counts = on
  work_mem = 25MB
  </code></pre>
  
  <p>So as I said, after commenting these, I could start it. But don't get it why it won't let start with these settings.</p>