title: Postgres replication betwenn 2 databases on same server
body: <p>I need to create a replica of existing database, that would copy any changing operation from master to slave, I.e create a mirror some sort of. I found  a lot of examples in web but they all describes process when master and slave are on different servers.
  I would like to create a write replica on the same server where master is located , without spinning up second instance of Postgres.</p>
  <p>Is it possible to do so and could you point me a direction where I could find a solution how to do it?</p>
  <p>Thank you.</p>
  <p>P.S. I understand that replication on 2 servers is better, but I just need to do it on one common server.</p>