You are trying to create replication with multiple masters, which is a very bad idea, since any change in any database should be copied to any other database. This is terribly slow - on a single server you can get several hundred transactions per second using a pair of fast disks and RAID1 or RAID10. This can be a lot more if you have a good RAID controller with a cache with a battery. If you add the overhead of communication with all your servers, you will receive no more than a dozen transactions per second.
If you need high availability, you should go for a warm backup solution where you have a server that is replicated but not in use - when the main server dies, the replacement takes over. You may lose some recent transactions if your primary server dies.
You can also use one master, asynchronous replication of multiple slaves. Each database change must be performed on one core server. But you can have several read-only slave servers. Data on these slave servers can be multiple transactions per master, so you may also lose some recent transactions in the event of a server death.
PostgreSQL has both types of replication - warm standby using log shipping and one master, multiple slaves using slony.
Only if you have a very small number of records can you go for synchronous replication. It can also be installed for PostgreSQL using PgPool-II or Sequoia.
For more information, see the "High Availability, Load Balancing, and Replication" section of the Postgres documentation.
Tometzky
source share