How to improve the performance of postgresql replication ?

if you want to perform synchronous_commit parameter before that you have to set "synchronous_standby_names" parameter synchronous_standby_names: synchronous_standby_names means "wait for acknowledgement until my standby replies". should be specify application_name on standby recovery.conf file in primary_conninfo lines ,default application name is walreceiver If any of the current synchronous standbys disconnects for whatever reason, it will be replaced immediately with the next-highest-priority standby. Specifying more than one standby name can allow very high availability. If synchronous_standby_names specified as empty synchronous_commit will behave as local even though you set synchronous_commit to on, remote_write or remote_apply anything. setting synchronous_standby_names = '*' #defalt standby name setting synchronous_standby_names = '2 (*)' #will make synchronous commit wait for reply from any 2 standby servers. The synchronous commit...