title: Postgresql 10.x how to configure Master - Master replication
body: <p>I need to configure Master - Master Postgresql replication servers. I guess psql 10 or 11 will be used for this.</p>
  
  <p>But I can`t find any information about master-master configuration, only master-slave.</p>
  
  <p>Here is a quick example for logical replication setup:</p>
  
  <p><a href="https://www.postgresql.org/docs/10/logical-replication-quick-setup.html" rel="nofollow noreferrer">https://www.postgresql.org/docs/10/logical-replication-quick-setup.html</a></p>
  
  <p>Final steps are:</p>
  
  <ul>
  <li><p>CREATE PUBLICATION ...</p></li>
  <li><p>CREATE SUBSCRIPTION ...</p></li>
  </ul>
  
  <p>This example looks like master - slave example - one DB instance will "send" data and the second - "receive".</p>
  
  <p>What steps should be for master - master replica? Does anybody have any examples of working configuration?</p>